Pass the correct value for the chain to the store

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman 2005-04-03 22:22:56 +00:00
parent fa55470e39
commit 4ec0cbdf15

View File

@ -198,9 +198,8 @@ PPC32TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
// that they may be loaded by dereferencing va_next
SDOperand FIN = DAG.getFrameIndex(VarArgsFrameIndex, MVT::i32);
SDOperand Val = DAG.getCopyFromReg(PPC::R4, MVT::i32, DAG.getRoot());
SDOperand Store = DAG.getNode(ISD::STORE, MVT::Other, Val, Val, FIN);
DAG.setRoot(Val.getValue(1));
ArgValues.push_back(Store);
SDOperand Store = DAG.getNode(ISD::STORE, MVT::Other, Val.getValue(1), Val, FIN);
DAG.setRoot(Store);
}
return ArgValues;