Eliminate the need for TypeFunction::funcdecl

This commit is contained in:
Alexey Prokhin
2013-10-01 14:00:28 +04:00
parent ca82589e25
commit b819975c84
22 changed files with 187 additions and 160 deletions

View File

@@ -117,7 +117,7 @@ void ReturnStatement::toIR(IRState* p)
dval = ae->toElemDtor(p);
}
// do abi specific transformations on the return value
v = p->func()->type->fty.putRet(exp->type, dval);
v = p->func()->decl->irFty.putRet(exp->type, dval);
}
if (Logger::enabled())