aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelPattern.cpp
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
commit4ec0cbdf156e13fad4d8e0a27869d345b6cdea24 (patch)
tree0124045eabd374c02bdd75779ac7e04001ae17ac /lib/Target/PowerPC/PPCISelPattern.cpp
parentfa55470e39780f038fb69a44b2159647f0711278 (diff)
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
Diffstat (limited to 'lib/Target/PowerPC/PPCISelPattern.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelPattern.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp
index 6c6ad337b9..6d79c9c7a4 100644
--- a/lib/Target/PowerPC/PPCISelPattern.cpp
+++ b/lib/Target/PowerPC/PPCISelPattern.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;