mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r355] Get rid of IRState::exps and topexp.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user