mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 20:37:25 +03:00
Fixed #36 — ICE: DValue::getLVal(): Assertion '0' failed
This commit is contained in:
parent
2980f703b1
commit
bb3908f290
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue