aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-12-27 10:17:03 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-12-27 10:17:03 +0000
commit9b3e4c853c407dcb3bc3d2f823a2265d50275d71 (patch)
tree892dbe160587a8b24337d1b4e35e1ba04d278e44
parent713b0b59fc51d25510bb923c52e1b9b44a38e1b4 (diff)
nasty paste-o, calls passing more than 8 arguments along were having
args >8 put into the wrong place git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25027 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/IA64/IA64ISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp
index 54ba3ef0d3..d63157fb44 100644
--- a/lib/Target/IA64/IA64ISelLowering.cpp
+++ b/lib/Target/IA64/IA64ISelLowering.cpp
@@ -347,12 +347,12 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
PtrOff = DAG.getNode(ISD::ADD, MVT::i64, StackPtr, PtrOff);
Stores.push_back(DAG.getNode(ISD::STORE, MVT::Other, Chain,
ValToStore, PtrOff, NullSV));
+ ArgOffset += ObjSize;
}
if(ValToConvert.Val) {
Converts.push_back(DAG.getNode(IA64ISD::GETFD, MVT::i64, ValToConvert));
}
- ArgOffset += ObjSize;
}
// Emit all stores, make sure they occur before any copies into physregs.
@@ -397,7 +397,7 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
}
}
- // next copy args into the usual places
+ // next copy args into the usual places, these are flagged
unsigned usedFPArgs = 0;
for (unsigned i = 0, e = RegValuesToPass.size(); i != e; ++i) {
Chain = DAG.getCopyToReg(Chain,