aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/iMemory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h
index 4cc76e4..d3dd9fd 100644
--- a/include/llvm/iMemory.h
+++ b/include/llvm/iMemory.h
@@ -159,6 +159,8 @@ public:
virtual Instruction *clone() const { return new LoadInst(*this); }
+ virtual bool mayWriteToMemory() const { return isVolatile(); }
+
Value *getPointerOperand() { return getOperand(0); }
const Value *getPointerOperand() const { return getOperand(0); }
static unsigned getPointerOperandIndex() { return 0U; }