While passing arg of types larger than char only one byte at lower end was getting passed. We couldn't catch this as we did not have tests that were passing an int value larger than 256.

llvm-svn: 68946
This commit is contained in:
Sanjiv Gupta 2009-04-13 09:38:38 +00:00
parent e2b8261d87
commit 0368bc4703
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ LowerDirectCallArguments(SDValue Op, SDValue Chain, SDValue FrameAddress,
Ops.clear();
Ops.push_back(Chain);
Ops.push_back(Arg.getValue(0));
Ops.push_back(Arg);
Ops.push_back(PtrLo);
Ops.push_back(PtrHi);
Ops.push_back(DAG.getConstant(StoreOffset, MVT::i8));