mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03: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:
parent
b0b530ea42
commit
4d24676beb
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ void DtoAssign(DValue* lhs, DValue* rhs)
|
||||||
if (DSliceValue* s2 = rhs->isSlice()) {
|
if (DSliceValue* s2 = rhs->isSlice()) {
|
||||||
DtoArrayCopySlices(s, s2);
|
DtoArrayCopySlices(s, s2);
|
||||||
}
|
}
|
||||||
else if (t->next->equals(t2)) {
|
else if (t->next->toBasetype()->equals(t2)) {
|
||||||
DtoArrayInit(s, rhs);
|
DtoArrayInit(s, rhs);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue