mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 11:53:13 +01:00
Fixed #36 — ICE: DValue::getLVal(): Assertion '0' failed
This commit is contained in:
@@ -1037,7 +1037,7 @@ DValue* DtoDeclarationExp(Dsymbol* declaration)
|
||||
if (ae->e2->op == TOKcall) {
|
||||
CallExp *ce = (CallExp *)ae->e2;
|
||||
TypeFunction *tf = (TypeFunction *)ce->e1->type->toBasetype();
|
||||
if (tf->ty == Tfunction && tf->retStyle() == RETstack) {
|
||||
if (tf->ty == Tfunction && tf->fty.arg_sret) {
|
||||
vd->ir.irLocal->value = ce->toElem(gIR)->getLVal();
|
||||
goto Lexit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user