[llvm-commits] [llvm] r137757 - /llvm/trunk/lib/VMCore/Instruction.cpp

Bill Wendling isanbard at gmail.com
Tue Aug 16 14:15:50 PDT 2011


Author: void
Date: Tue Aug 16 16:15:50 2011
New Revision: 137757

URL: http://llvm.org/viewvc/llvm-project?rev=137757&view=rev
Log:
The resume instruction may throw. Return 'true' in this case.

Modified:
    llvm/trunk/lib/VMCore/Instruction.cpp

Modified: llvm/trunk/lib/VMCore/Instruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instruction.cpp?rev=137757&r1=137756&r2=137757&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instruction.cpp (original)
+++ llvm/trunk/lib/VMCore/Instruction.cpp Tue Aug 16 16:15:50 2011
@@ -357,7 +357,7 @@
 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:





More information about the llvm-commits mailing list