# HG changeset patch # User Christian Kamm # Date 1217442346 -7200 # Node ID ca80e42d11e0ff70e70a15903a227a96e5d9ef61 # Parent d8dc221d3db7b3ee25ccf2204b6022b0921dd77b Forgot a ->toBasetype() in the array bound code. Fixes compile/typedef_05. diff -r d8dc221d3db7 -r ca80e42d11e0 gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Wed Jul 30 19:02:13 2008 +0200 +++ b/gen/llvmhelpers.cpp Wed Jul 30 20:25:46 2008 +0200 @@ -160,7 +160,7 @@ 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