Address Joseph's review comments.
[oota-llvm.git] / lib / IR / Instruction.cpp
index 124bf0893211b18489c2c486cbb28884a4638207..2b09e551b79344421d17a67cef2a888298075493 100644 (file)
@@ -469,6 +469,8 @@ bool Instruction::mayThrow() const {
     return CRI->unwindsToCaller();
   if (const auto *CEBI = dyn_cast<CatchEndBlockInst>(this))
     return CEBI->unwindsToCaller();
+  if (const auto *TBI = dyn_cast<TerminateBlockInst>(this))
+    return TBI->unwindsToCaller();
   return isa<ResumeInst>(this);
 }