[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.
This commit is contained in:
Christian Kamm 2008-07-14 12:39:23 +02:00
parent b0b530ea42
commit 4d24676beb

View file

@ -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 {