forked from OSchip/llvm-project
[IR] Conservatively mark 'catchpad' as accessing memory
The exact semantics of 'catchpad' are really in the hands of the personality routine so we shouldn't assume that they have no side effects. llvm-svn: 247322
This commit is contained in:
parent
65f50868e5
commit
880c2cb097
|
@ -414,6 +414,7 @@ bool Instruction::mayReadFromMemory() const {
|
|||
case Instruction::Fence: // FIXME: refine definition of mayReadFromMemory
|
||||
case Instruction::AtomicCmpXchg:
|
||||
case Instruction::AtomicRMW:
|
||||
case Instruction::CatchPad:
|
||||
case Instruction::CatchRet:
|
||||
case Instruction::TerminatePad:
|
||||
return true;
|
||||
|
@ -436,6 +437,7 @@ bool Instruction::mayWriteToMemory() const {
|
|||
case Instruction::VAArg:
|
||||
case Instruction::AtomicCmpXchg:
|
||||
case Instruction::AtomicRMW:
|
||||
case Instruction::CatchPad:
|
||||
case Instruction::CatchRet:
|
||||
case Instruction::TerminatePad:
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue