diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-10 16:53:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-10 16:53:29 +0000 |
commit | 562cb66b845f3de73ef851c7bafd2d94a808997c (patch) | |
tree | 30de4ab047d4312214da0c42194d9b7166025828 /lib/Transforms | |
parent | 27c694bacb40be5f727c469095d7a44fe05c3334 (diff) |
Fix a bug in my checkin last night that was breaking programs using invoke.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 8adf630f91..a9fed6867c 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -210,7 +210,7 @@ bool ADCE::doADCE() { if (F && AA->onlyReadsMemory(F)) { // The function cannot unwind. Convert it to a call with a branch // after it to the normal destination. - std::vector<Value*> Args(II->op_begin()+1, II->op_end()); + std::vector<Value*> Args(II->op_begin()+3, II->op_end()); std::string Name = II->getName(); II->setName(""); Instruction *NewCall = new CallInst(F, Args, Name, II); II->replaceAllUsesWith(NewCall); |