diff options
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
-rw-r--r-- | llvm/lib/IR/Instruction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index 124bf089321..2b09e551b79 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -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); } |