projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace some calls to isa<LandingPadInst> with isEHPad()
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
IndVarSimplify.cpp
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 66f8aef98d4c160a9259ec89ed0733eff49cbb0f..41aeea50554a1316f0036cd0c7c6a712b1e51da1 100644
(file)
--- a/
lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/
lib/Transforms/Scalar/IndVarSimplify.cpp
@@
-1885,8
+1885,8
@@
void IndVarSimplify::SinkUnusedInvariants(Loop *L) {
if (isa<DbgInfoIntrinsic>(I))
continue;
- // Skip
landing
pad instructions.
- if (
isa<LandingPadInst>(I
))
+ // Skip
eh
pad instructions.
+ if (
I->isEHPad(
))
continue;
// Don't sink alloca: we never want to sink static alloca's out of the