Forgot a ->toBasetype() in the array bound code.

Fixes compile/typedef_05.
This commit is contained in:
Christian Kamm 2008-07-30 20:25:46 +02:00
parent 5b5d7404b4
commit fcd784d14f

View file

@ -160,7 +160,7 @@ void DtoAssert(Loc* loc, DValue* msg)
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");
// static arrays can get static checks for static indices