Implemented CommaExp::cacheLvalue(). Fixed CallExp::chackLvalue().

This commit is contained in:
Alexey Prokhin
2011-01-06 19:41:54 +03:00
parent e9dacd97e2
commit cbd0296328
4 changed files with 22 additions and 27 deletions

View File

@@ -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);