summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/iMemory.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/iMemory.h')
-rw-r--r--llvm/include/llvm/iMemory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/iMemory.h b/llvm/include/llvm/iMemory.h
index e42f5b993b8..09c94a2c77d 100644
--- a/llvm/include/llvm/iMemory.h
+++ b/llvm/include/llvm/iMemory.h
@@ -120,7 +120,7 @@ struct FreeInst : public Instruction {
virtual Instruction *clone() const { return new FreeInst(Operands[0]); }
- virtual bool hasSideEffects() const { return true; }
+ virtual bool mayWriteToMemory() const { return true; }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const FreeInst *) { return true; }
@@ -177,7 +177,7 @@ public:
StoreInst(Value *Val, Value *Ptr, Instruction *InsertBefore = 0);
virtual Instruction *clone() const { return new StoreInst(*this); }
- virtual bool hasSideEffects() const { return true; }
+ virtual bool mayWriteToMemory() const { return true; }
Value *getPointerOperand() { return getOperand(1); }
const Value *getPointerOperand() const { return getOperand(1); }
OpenPOWER on IntegriCloud