Drive-by fixes for LandingPad -> EHPad
[oota-llvm.git] / lib / Transforms / Utils / CodeExtractor.cpp
index ab89b41f6788e7271e97b47bce43b49c6a85ff83..896cff1bae9777e7b0337cf6d75c0227fe129da1 100644 (file)
@@ -51,7 +51,7 @@ AggregateArgsOpt("aggregate-extracted-args", cl::Hidden,
 /// \brief Test whether a block is valid for extraction.
 static bool isBlockValidForExtraction(const BasicBlock &BB) {
   // Landing pads must be in the function where they were inserted for cleanup.
-  if (BB.isLandingPad())
+  if (BB.isEHPad())
     return false;
 
   // Don't hoist code containing allocas, invokes, or vastarts.