Index: llvm/lib/IR/BasicBlock.cpp =================================================================== --- llvm/lib/IR/BasicBlock.cpp +++ llvm/lib/IR/BasicBlock.cpp @@ -486,7 +486,7 @@ /// Return true if this basic block is a landing pad. I.e., it's /// the destination of the 'unwind' edge of an invoke instruction. bool BasicBlock::isLandingPad() const { - return isa(getFirstNonPHI()); + return isa_and_nonnull(getFirstNonPHI()); } /// Return the landingpad instruction associated with the landing pad.