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:
cfcccef
)
Don't replace *all* uses with the new stuff.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 23 Aug 2011 22:55:03 +0000
(22:55 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 23 Aug 2011 22:55:03 +0000
(22:55 +0000)
This is not necessarily the first or dominating use of the EH values. The IR
breaks if it's not. So replace the specific value in the instruction with the
new value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138406
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SjLjEHPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SjLjEHPrepare.cpp
b/lib/CodeGen/SjLjEHPrepare.cpp
index 02c10493857ee2b512cb2b6c4d7022f5fd52ec2c..be491b13834e77edb816fde49004bfb95a1bf41a 100644
(file)
--- a/
lib/CodeGen/SjLjEHPrepare.cpp
+++ b/
lib/CodeGen/SjLjEHPrepare.cpp
@@
-347,7
+347,7
@@
static void ReplaceLandingPadVal(Function &F, Instruction *Inst, Value *ExnAddr,
continue;
}
- I
nst->replaceAllUsesWith(
CreateLandingPadLoad(F, ExnAddr, SelAddr, I));
+ I
->replaceUsesOfWith(Inst,
CreateLandingPadLoad(F, ExnAddr, SelAddr, I));
}
}