mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 00:03:14 +01:00
[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user