[svn r355] Get rid of IRState::exps and topexp.

This commit is contained in:
Christian Kamm
2008-07-12 15:43:13 +02:00
parent f0d8b9e153
commit 717d52d4f0
8 changed files with 39 additions and 214 deletions

View File

@@ -64,9 +64,7 @@ void ReturnStatement::toIR(IRState* p)
DValue* rvar = new DVarValue(f->type->next, f->decl->ir.irFunc->retArg, true);
p->exps.push_back(IRExp(NULL,exp,rvar));
DValue* e = exp->toElem(p);
p->exps.pop_back();
if (!e->inPlace())
DtoAssign(rvar, e);