mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Fixed structs assign
This commit is contained in:
parent
910c589b79
commit
38b4b4569b
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs, int op)
|
|||
Type* t2 = rhs->getType()->toBasetype();
|
||||
|
||||
if (t->ty == Tstruct) {
|
||||
if (!t->equals(t2)) {
|
||||
if (!stripModifiers(t)->equals(stripModifiers(t2))) {
|
||||
// FIXME: use 'rhs' for something !?!
|
||||
DtoAggrZeroInit(lhs->getLVal());
|
||||
#if DMDV2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue