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 | 55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1 (patch) | |
tree | 1d80503f64328242c186313d309c67a2891fa531 /lib | |
parent | d54b4e612aa5d2d76a62f4409f82bd409f9af297 (diff) | |
download | external_llvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.zip external_llvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.tar.gz external_llvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.tar.bz2 |
The resume instruction may throw. Return 'true' in this case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137757 91177308-0d34-0410-b5e6-96231b3b80d8
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: |