mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 05:13:14 +01:00
Reverted "Fixed passing of structs and static arrays into functions."
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user