diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:01:03 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:01:03 +0000 |
commit | 11aeb90aaa40eefec46073ae06027fcee003875a (patch) | |
tree | 6ebab5d66903b2628b97224a2cda732f41931ce6 /llvm/lib/IR/Instruction.cpp | |
parent | 1d3fe98d57be5bcaff529f80122f1389bad8d683 (diff) | |
download | bcm5719-llvm-11aeb90aaa40eefec46073ae06027fcee003875a.tar.gz bcm5719-llvm-11aeb90aaa40eefec46073ae06027fcee003875a.zip |
Address Joseph's review comments.
llvm-svn: 241890
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); } |