summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-04-03 22:22:56 +0000
committerNate Begeman <natebegeman@mac.com>2005-04-03 22:22:56 +0000
commit7a3e929efc1ed8aa1c3d710dff0d9942353a2ee8 (patch)
tree510386ed7e9f3c1576c231607679ebc1237cbfaa /llvm/lib
parentf6dc43bd46b774040d19e368394ac04d276702fe (diff)
downloadbcm5719-llvm-7a3e929efc1ed8aa1c3d710dff0d9942353a2ee8.tar.gz
bcm5719-llvm-7a3e929efc1ed8aa1c3d710dff0d9942353a2ee8.zip
Pass the correct value for the chain to the store
llvm-svn: 21066
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index 6c6ad337b94..6d79c9c7a44 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
@@ -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;
OpenPOWER on IntegriCloud