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: