mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 22:14:54 +03:00
Rename DVarValue to DLValue
This commit is contained in:
parent
963a10b225
commit
0c0c1ecaf5
14 changed files with 77 additions and 77 deletions
|
@ -1037,7 +1037,7 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
|
|||
if (fnarg && (fnarg->storageClass & (STCref | STCout))) {
|
||||
Loc loc;
|
||||
DValue *arg = toElem(argexp, true);
|
||||
return new DVarValue(argexp->type,
|
||||
return new DLValue(argexp->type,
|
||||
arg->isLVal() ? arg->getLVal() : makeLValue(loc, arg));
|
||||
}
|
||||
|
||||
|
@ -1053,7 +1053,7 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
|
|||
// byval arg, but expr has no storage yet
|
||||
if (DtoIsInMemoryOnly(argexp->type) && (arg->isSlice() || arg->isNull())) {
|
||||
LLValue *alloc = DtoAlloca(argexp->type, ".tmp_arg");
|
||||
auto vv = new DVarValue(argexp->type, alloc);
|
||||
auto vv = new DLValue(argexp->type, alloc);
|
||||
DtoAssign(argexp->loc, vv, arg);
|
||||
arg = vv;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue