From: Bill Wendling Date: Tue, 16 Aug 2011 21:15:50 +0000 (+0000) Subject: The resume instruction may throw. Return 'true' in this case. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 9e55a083db0..863b098e8f8 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(this)) return !CI->doesNotThrow(); - return false; + return isa(this); } /// isAssociative - Return true if the instruction is associative: