summaryrefslogtreecommitdiff
path: root/lib/VMCore/Instruction.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-08-16 21:15:50 +0000
committerBill Wendling <isanbard@gmail.com>2011-08-16 21:15:50 +0000
commit55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1 (patch)
tree1d80503f64328242c186313d309c67a2891fa531 /lib/VMCore/Instruction.cpp
parentd54b4e612aa5d2d76a62f4409f82bd409f9af297 (diff)
downloadllvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.tar.gz
llvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.tar.bz2
llvm-55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1.tar.xz
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/VMCore/Instruction.cpp')
-rw-r--r--lib/VMCore/Instruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp
index 9e55a083db..863b098e8f 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: