diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 2054f929..5e2880a0 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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