projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c694b
)
Fix a bug in my checkin last night that was breaking programs using invoke.
author
Chris Lattner
<sabre@nondot.org>
Sat, 10 Apr 2004 16:53:29 +0000
(16:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 10 Apr 2004 16:53:29 +0000
(16:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12813
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/ADCE.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ADCE.cpp
b/lib/Transforms/Scalar/ADCE.cpp
index 8adf630f91cd7d4ae1cbf1d0a8c629b17a835099..a9fed6867c1de21219dbe9745328af44dd8750f5 100644
(file)
--- 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);