From 4d24676beb667940cb84575d8e50e2675eeee87c Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 14 Jul 2008 12:39:23 +0200 Subject: [PATCH] [svn r379] Fix slice assigns of the form T[] = T when T is a typedef. Fixes run/a/array_initialization_20_B, D, F, H. --- gen/llvmhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index fee3a708..e19409db 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -541,7 +541,7 @@ void DtoAssign(DValue* lhs, DValue* rhs) if (DSliceValue* s2 = rhs->isSlice()) { DtoArrayCopySlices(s, s2); } - else if (t->next->equals(t2)) { + else if (t->next->toBasetype()->equals(t2)) { DtoArrayInit(s, rhs); } else {