mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 21:11:36 +00:00
Fix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Loads "mayWriteToMemory" if they are volatile llvm-svn: 8422
This commit is contained in:
parent
0df3e2e3c7
commit
8c119fc9af
@ -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…
x
Reference in New Issue
Block a user