mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
Rename DtoIsPassedByRef() to DtoIsInMemoryOnly()
Motivation: issue #937
This commit is contained in:
parent
f976bcb467
commit
740a21eb8f
9 changed files with 16 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue