Rename IrFunction::retArg to sretArg

This commit is contained in:
Martin 2016-06-30 00:25:18 +02:00
parent 879fb97d56
commit cdb817633e
4 changed files with 7 additions and 7 deletions

View file

@ -884,7 +884,7 @@ void DtoVarDeclaration(VarDeclaration *vd) {
if (isIrLocalCreated(vd)) {
// Nothing to do if it has already been allocated.
} else if (gIR->func()->retArg && gIR->func()->decl->nrvo_can &&
} else if (gIR->func()->sretArg && gIR->func()->decl->nrvo_can &&
gIR->func()->decl->nrvo_var == vd) {
// Named Return Value Optimization (NRVO):
// T f() {
@ -893,7 +893,7 @@ void DtoVarDeclaration(VarDeclaration *vd) {
// return ret; // NRVO.
// }
assert(!isSpecialRefVar(vd) && "Can this happen?");
getIrLocal(vd, true)->value = gIR->func()->retArg;
getIrLocal(vd, true)->value = gIR->func()->sretArg;
} else {
// normal stack variable, allocate storage on the stack if it has not
// already been done