Rename DtoIsPassedByRef() to DtoIsInMemoryOnly()

Motivation: issue #937
This commit is contained in:
Martin 2015-11-22 00:02:40 +01:00
parent f976bcb467
commit 740a21eb8f
9 changed files with 16 additions and 14 deletions

View file

@ -951,7 +951,7 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
}
// byval arg, but expr has no storage yet
if (DtoIsPassedByRef(argexp->type) && (arg->isSlice() || arg->isNull())) {
if (DtoIsInMemoryOnly(argexp->type) && (arg->isSlice() || arg->isNull())) {
LLValue *alloc = DtoAlloca(argexp->type, ".tmp_arg");
auto vv = new DVarValue(argexp->type, alloc);
DtoAssign(argexp->loc, vv, arg);