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 | 7ebfe61dc1e9d75b9b07b2a5ca51adeae4588dca (patch) | |
tree | 0a336fdfeb7d09642617a319ed929c26573373c8 /llvm/lib/Transforms/Scalar/ADCE.cpp | |
parent | 5093213c40bb3ed52f186741b13e4f1039eaac86 (diff) | |
download | bcm5719-llvm-7ebfe61dc1e9d75b9b07b2a5ca51adeae4588dca.tar.gz bcm5719-llvm-7ebfe61dc1e9d75b9b07b2a5ca51adeae4588dca.zip |
Fix a bug in my checkin last night that was breaking programs using invoke.
llvm-svn: 12813
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ADCE.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ADCE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 8adf630f91c..a9fed6867c1 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/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); |