diff options
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
-rw-r--r-- | llvm/lib/IR/Instruction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index 0dc8633ac2a..908e79039b5 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -196,6 +196,7 @@ const char *Instruction::getOpcodeName(unsigned OpCode) { case Invoke: return "invoke"; case Resume: return "resume"; case Unreachable: return "unreachable"; + case CleanupEndPad: return "cleanupendpad"; case CleanupRet: return "cleanupret"; case CatchEndPad: return "catchendpad"; case CatchRet: return "catchret"; @@ -467,6 +468,8 @@ bool Instruction::mayThrow() const { return !CI->doesNotThrow(); if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) return CRI->unwindsToCaller(); + if (const auto *CEPI = dyn_cast<CleanupEndPadInst>(this)) + return CEPI->unwindsToCaller(); if (const auto *CEPI = dyn_cast<CatchEndPadInst>(this)) return CEPI->unwindsToCaller(); if (const auto *TPI = dyn_cast<TerminatePadInst>(this)) |