Reverted "Fixed passing of structs and static arrays into functions."

This commit is contained in:
Alexey Prokhin
2011-01-06 20:06:27 +03:00
parent cbd0296328
commit 54e3121ad9
2 changed files with 1 additions and 10 deletions

View File

@@ -86,12 +86,7 @@ void IrFuncTy::getParam(Type* dty, int idx, DValue* val, llvm::Value* lval)
return;
}
LLValue *rval = val->getRVal();
#if DMDV2
if (DtoIsPassedByRef(val->type) && isaPointer(rval))
rval = DtoLoad(rval);
#endif
DtoStore(rval, lval);
DtoStore(val->getRVal(), lval);
}
//////////////////////////////////////////////////////////////////////////////