Fixed structs assign

This commit is contained in:
Alexey Prokhin 2011-01-03 16:50:08 +03:00
parent 910c589b79
commit 38b4b4569b

View file

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