[LAA] Remove unused pointer partition argument from needsChecking(), NFC
[oota-llvm.git] / lib / Analysis / LoopInfo.cpp
index bd0686075a90c0e5e021b9fb5079a2c376099bcd..1ad4fd893bc132f977ba3b240c282534f5b7e7dd 100644 (file)
@@ -102,8 +102,8 @@ bool Loop::makeLoopInvariant(Instruction *I, bool &Changed,
     return false;
   if (I->mayReadFromMemory())
     return false;
-  // The landingpad instruction is immobile.
-  if (isa<LandingPadInst>(I))
+  // EH block instructions are immobile.
+  if (I->isEHPad())
     return false;
   // Determine the insertion point, unless one was given.
   if (!InsertPt) {