diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-08-16 21:15:50 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-08-16 21:15:50 +0000 |
| commit | d7c6c9141a1db25971b1859eca5456cc484fb990 (patch) | |
| tree | 4fd8b4fde10ca4a45f10ba709cc111c559288297 | |
| parent | 7283da9bb2d04df27560e832f197629ad6f9f53f (diff) | |
| download | bcm5719-llvm-d7c6c9141a1db25971b1859eca5456cc484fb990.tar.gz bcm5719-llvm-d7c6c9141a1db25971b1859eca5456cc484fb990.zip | |
The resume instruction may throw. Return 'true' in this case.
llvm-svn: 137757
| -rw-r--r-- | llvm/lib/VMCore/Instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp index 9e55a083db0..863b098e8f8 100644 --- a/llvm/lib/VMCore/Instruction.cpp +++ b/llvm/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: |

