mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
Fix DMD Issue 11238 - Codegen error when this is a ref parameter to the method
This commit is contained in:
@@ -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<ArrayLiteralExp *>(e2);
|
||||
|
||||
Reference in New Issue
Block a user