mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03: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:
parent
06a29342d3
commit
36f6ebc77f
12 changed files with 594 additions and 482 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue