diff gen/statements.cpp @ 155:7f92f477ff53 trunk

[svn r171] starting to move IR data from AST nodes into IRState; started with IrFunction
author ChristianK
date Tue, 29 Apr 2008 21:33:50 +0200
parents 86d3bb8ca33e
children ccd07d9f2ce9
line wrap: on
line diff
--- a/gen/statements.cpp	Tue Mar 25 18:25:24 2008 +0100
+++ b/gen/statements.cpp	Tue Apr 29 21:33:50 2008 +0200
@@ -77,11 +77,11 @@
         if (p->topfunc()->getReturnType() == llvm::Type::VoidTy) {
             IrFunction* f = p->func();
             assert(f->type->llvmRetInPtr);
-            assert(f->decl->irFunc->retArg);
+            assert(gIR->irFunc[f->decl]->retArg);
 
             if (global.params.symdebug) DtoDwarfStopPoint(loc.linnum);
 
-            DValue* rvar = new DVarValue(f->type->next, f->decl->irFunc->retArg, true);
+            DValue* rvar = new DVarValue(f->type->next, gIR->irFunc[f->decl]->retArg, true);
 
             p->exps.push_back(IRExp(NULL,exp,rvar));
             DValue* e = exp->toElem(p);