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
This commit is contained in:
Bill Wendling 2011-08-16 21:15:50 +00:00
parent d54b4e612a
commit 55fdb4eec0

View 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: