mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 20:37:25 +03:00
Forgot a ->toBasetype() in the array bound code.
Fixes compile/typedef_05.
This commit is contained in:
parent
5b5d7404b4
commit
fcd784d14f
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void DtoAssert(Loc* loc, DValue* msg)
|
||||||
|
|
||||||
void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index, bool isslice)
|
void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index, bool isslice)
|
||||||
{
|
{
|
||||||
Type* arrty = arr->getType();
|
Type* arrty = arr->getType()->toBasetype();
|
||||||
assert((arrty->ty == Tsarray || arrty->ty == Tarray) && "Can only array bounds check for static or dynamic arrays");
|
assert((arrty->ty == Tsarray || arrty->ty == Tarray) && "Can only array bounds check for static or dynamic arrays");
|
||||||
|
|
||||||
// static arrays can get static checks for static indices
|
// static arrays can get static checks for static indices
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue