mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Work around invalid special ref var initializations in 2.063.
This commit is contained in:
@@ -419,7 +419,12 @@ DValue* AssignExp::toElem(IRState* p)
|
||||
DVarValue* lhs = e1->toElem(p)->isVar();
|
||||
assert(lhs);
|
||||
DValue* rhs = e2->toElem(p);
|
||||
DtoStore(rhs->getLVal(), lhs->getRefStorage());
|
||||
|
||||
// We shouldn't really need makeLValue() here, but the 2.063
|
||||
// frontend generates ref variables initialized from function
|
||||
// calls.
|
||||
DtoStore(makeLValue(loc, rhs), lhs->getRefStorage());
|
||||
|
||||
return rhs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user