From fcd784d14facfd7a5d719fa125e46b78e9a5dc00 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 30 Jul 2008 20:25:46 +0200 Subject: [PATCH] Forgot a ->toBasetype() in the array bound code. Fixes compile/typedef_05. --- gen/llvmhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index a97906c3..a3877522 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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