diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 9e55a08..863b098 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -357,7 +357,7 @@ bool Instruction::mayWriteToMemory() const { bool Instruction::mayThrow() const { if (const CallInst *CI = dyn_cast<CallInst>(this)) return !CI->doesNotThrow(); - return false; + return isa<ResumeInst>(this); } /// isAssociative - Return true if the instruction is associative: |