diff options
| author | Duraid Madina <duraid@octopus.com.au> | 2005-12-27 10:17:03 +0000 |
|---|---|---|
| committer | Duraid Madina <duraid@octopus.com.au> | 2005-12-27 10:17:03 +0000 |
| commit | 69ac08c683c74fd5bca9af6fed6637be32785acd (patch) | |
| tree | da6f09151af92709a3105045791236b8883b4d8c | |
| parent | 5bd1c2783b04c0af4d71cda07ce1bcd05d0eead2 (diff) | |
| download | bcm5719-llvm-69ac08c683c74fd5bca9af6fed6637be32785acd.tar.gz bcm5719-llvm-69ac08c683c74fd5bca9af6fed6637be32785acd.zip | |
nasty paste-o, calls passing more than 8 arguments along were having
args >8 put into the wrong place
llvm-svn: 25027
| -rw-r--r-- | llvm/lib/Target/IA64/IA64ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelLowering.cpp b/llvm/lib/Target/IA64/IA64ISelLowering.cpp index 54ba3ef0d3c..d63157fb444 100644 --- a/llvm/lib/Target/IA64/IA64ISelLowering.cpp +++ b/llvm/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, |

