Mercurial > projects > ldc
diff gen/functions.cpp @ 1151:3cf0066e6faf
- 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 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Sat, 28 Mar 2009 05:00:43 +0100 |
parents | 5ebe8224988b |
children | 521dd1626d76 |
line wrap: on
line diff
--- a/gen/functions.cpp Fri Mar 27 23:24:47 2009 +0100 +++ b/gen/functions.cpp Sat Mar 28 05:00:43 2009 +0100 @@ -940,7 +940,7 @@ // 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());