The resume instruction may throw. Return 'true' in this case.
authorBill Wendling <isanbard@gmail.com>
Tue, 16 Aug 2011 21:15:50 +0000 (21:15 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 16 Aug 2011 21:15:50 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137757 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instruction.cpp

index 9e55a083db0cc5f08cb839acd120e64f835836f7..863b098e8f8c8cd95cd0dbba79e2a4bd931d4b46 100644 (file)
@@ -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: