forked from OSchip/llvm-project
Fix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Loads "mayWriteToMemory" if they are volatile llvm-svn: 8422
This commit is contained in:
parent
83da4f8bc6
commit
3eb4bba971
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue