Replace some calls to isa<LandingPadInst> with isEHPad()
[oota-llvm.git] / lib / Transforms / Scalar / IndVarSimplify.cpp
index 66f8aef98d4c160a9259ec89ed0733eff49cbb0f..41aeea50554a1316f0036cd0c7c6a712b1e51da1 100644 (file)
@@ -1885,8 +1885,8 @@ void IndVarSimplify::SinkUnusedInvariants(Loop *L) {
     if (isa<DbgInfoIntrinsic>(I))
       continue;
 
-    // Skip landingpad 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