mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 04:51:23 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8eaf34eed8
commit
1c018c2ad0
@ -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
Block a user