summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Instruction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-09-10 18:50:09 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-09-10 18:50:09 +0000
commit880c2cb0972c626d9f2acfbfca833d354e3e4e87 (patch)
tree8906bef5bb33590029cf2761ace94cb6b41eae41 /llvm/lib/IR/Instruction.cpp
parent65f50868e5a7637afef2d11be33f41116134a621 (diff)
downloadbcm5719-llvm-880c2cb0972c626d9f2acfbfca833d354e3e4e87.tar.gz
bcm5719-llvm-880c2cb0972c626d9f2acfbfca833d354e3e4e87.zip
[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
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
-rw-r--r--llvm/lib/IR/Instruction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp
index 908e79039b5..91ac83c10d4 100644
--- a/llvm/lib/IR/Instruction.cpp
+++ b/llvm/lib/IR/Instruction.cpp
@@ -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;
OpenPOWER on IntegriCloud