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:
parent
82d17d0e70
commit
1a5aaf6009
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user