View source code
Display the source code in dmd/e2ir.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.e2ir.buildArrayBoundsError

Construct elem to run when an array bounds check fails.

extern(C++) elem* buildArrayBoundsError (
  IRState* irs,
  ref const(dmd.globals.Loc) loc,
  elem* lwr,
  elem* upr,
  elem* elength
);

Parameters

NameDescription
irs to get function from
loc to get file/line from
lwr lower bound passed, if slice (array[lwr .. upr]). null otherwise.
upr upper bound passed if slice (array[lwr .. upr]), index if not a slice (array[upr])
elength length of array

Returns

elem generated

Authors

Walter Bright

License

Boost License 1.0