mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
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:
parent
fa55470e39
commit
4ec0cbdf15
@ -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