diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-12 01:33:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-12 01:33:08 +0000 |
commit | 271426a99a6afb5a884b6dcf2e50a6a9680ec839 (patch) | |
tree | 6a8c9ffc183e52e8309f98322723ffa53edff81a | |
parent | b3c77152c85c0ec67afcf77a096008706498d4f6 (diff) |
Fix an itanium call lowering bug for duraid
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25235 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/IA64/IA64ISelLowering.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp index 256d3ef366..c1bae3f6db 100644 --- a/lib/Target/IA64/IA64ISelLowering.cpp +++ b/lib/Target/IA64/IA64ISelLowering.cpp @@ -376,14 +376,14 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain, // save the current GP, SP and RP : FIXME: do we need to do all 3 always? SDOperand GPBeforeCall = DAG.getCopyFromReg(Chain, IA64::r1, MVT::i64, InFlag); - Chain = GPBeforeCall; - InFlag = Chain.getValue(1); + Chain = GPBeforeCall.getValue(1); + InFlag = Chain.getValue(2); SDOperand SPBeforeCall = DAG.getCopyFromReg(Chain, IA64::r12, MVT::i64, InFlag); - Chain = SPBeforeCall; - InFlag = Chain.getValue(1); + Chain = SPBeforeCall.getValue(1); + InFlag = Chain.getValue(2); SDOperand RPBeforeCall = DAG.getCopyFromReg(Chain, IA64::rp, MVT::i64, InFlag); - Chain = RPBeforeCall; - InFlag = Chain.getValue(1); + Chain = RPBeforeCall.getValue(1); + InFlag = Chain.getValue(2); // Build a sequence of copy-to-reg nodes chained together with token chain // and flag operands which copy the outgoing integer args into regs out[0-7] |