mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 07:13:13 +01:00
- Versioned Expresssion::toElem with #if IN_DMD/IN_LLVM.
- Eliminated the DLRValue DValue. - Implemented proactive handling of l-value CastExpS. - Minor tweak in runtime memory.d .
This commit is contained in:
@@ -940,7 +940,7 @@ DValue* DtoArgument(Argument* fnarg, Expression* argexp)
|
||||
// ref/out arg
|
||||
if (fnarg && (fnarg->storageClass & (STCref | STCout)))
|
||||
{
|
||||
if (arg->isVar() || arg->isLRValue())
|
||||
if (arg->isVar())
|
||||
arg = new DImValue(argexp->type, arg->getLVal());
|
||||
else
|
||||
arg = new DImValue(argexp->type, arg->getRVal());
|
||||
|
||||
Reference in New Issue
Block a user