From 55fdb4eec073fe7fd480ffa7e2a3b05acfacd5b1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 16 Aug 2011 21:15:50 +0000 Subject: [PATCH] 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 --- lib/VMCore/Instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.34.1