buildArrayBoundsError

Construct elem to run when an array bounds check fails.

extern (C++)
buildArrayBoundsError

Parameters

irs
Type: IRState*

to get function from

loc
Type: Loc

to get file/line from

lwr
Type: elem*

lower bound passed, if slice (array[lwr .. upr]). null otherwise.

upr
Type: elem*

upper bound passed if slice (array[lwr .. upr]), index if not a slice (arrayupr)

elength
Type: elem*

length of array

Return Value

Type: elem*

elem generated

Meta