changeset 358:051f5b550d9c trunk

[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.
author ChristianK
date Mon, 14 Jul 2008 12:39:23 +0200
parents 82af71383b8a
children 926f65e39246
files gen/llvmhelpers.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Mon Jul 14 12:11:30 2008 +0200
+++ b/gen/llvmhelpers.cpp	Mon Jul 14 12:39:23 2008 +0200
@@ -541,7 +541,7 @@
             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 {