projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Address Joseph's review comments.
[oota-llvm.git]
/
lib
/
IR
/
Instruction.cpp
diff --git
a/lib/IR/Instruction.cpp
b/lib/IR/Instruction.cpp
index 124bf0893211b18489c2c486cbb28884a4638207..2b09e551b79344421d17a67cef2a888298075493 100644
(file)
--- a/
lib/IR/Instruction.cpp
+++ b/
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);
}