1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Pass the correct value for the chain to the store

llvm-svn: 21066
This commit is contained in:
Nate Begeman 2005-04-03 22:22:56 +00:00
parent 82d17d0e70
commit 1a5aaf6009

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;