mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Forgot a ->toBasetype() in the array bound code.
Fixes compile/typedef_05.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user