mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
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:
parent
d54b4e612a
commit
55fdb4eec0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user