diff --git a/gen/toir.cpp b/gen/toir.cpp index 8bdf9f8d..b9d6f34e 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -520,6 +520,7 @@ DValue* AssignExp::toElem(IRState* p) if (se->lwr == NULL && ta->ty == Tsarray && e2->op == TOKarrayliteral && + op == TOKconstruct && // DMD Bugzilla 11238: avoid aliasing issue t2->nextOf()->mutableOf()->implicitConvTo(ta->nextOf())) { ArrayLiteralExp * const ale = static_cast(e2);