diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 48e10d66..83ff6a72 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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; }