From bb3908f2909c811c4871300c64bc680cda8028f5 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Mon, 5 Dec 2011 13:19:27 +0400 Subject: [PATCH] =?UTF-8?q?Fixed=20#36=20=E2=80=94=20ICE:=20DValue::getLVa?= =?UTF-8?q?l():=20Assertion=20'0'=20failed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/llvmhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }