Mercurial > projects > ldc
changeset 441:ca80e42d11e0
Forgot a ->toBasetype() in the array bound code.
Fixes compile/typedef_05.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 30 Jul 2008 20:25:46 +0200 |
parents | d8dc221d3db7 |
children | 76078c8ab5b9 |
files | gen/llvmhelpers.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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