mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-18 22:03:14 +01:00
Implemented CommaExp::cacheLvalue(). Fixed CallExp::chackLvalue().
This commit is contained in:
@@ -88,7 +88,7 @@ void IrFuncTy::getParam(Type* dty, int idx, DValue* val, llvm::Value* lval)
|
||||
|
||||
LLValue *rval = val->getRVal();
|
||||
#if DMDV2
|
||||
if (DtoIsPassedByRef(val->type))
|
||||
if (DtoIsPassedByRef(val->type) && isaPointer(rval))
|
||||
rval = DtoLoad(rval);
|
||||
#endif
|
||||
DtoStore(rval, lval);
|
||||
|
||||
Reference in New Issue
Block a user