diff options
Diffstat (limited to 'lib/IR/Instruction.cpp')
-rw-r--r-- | lib/IR/Instruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Instruction.cpp b/lib/IR/Instruction.cpp index ba5629d1662b..b157c7bb34bf 100644 --- a/lib/IR/Instruction.cpp +++ b/lib/IR/Instruction.cpp @@ -524,7 +524,7 @@ bool Instruction::mayReadFromMemory() const { case Instruction::Call: case Instruction::Invoke: case Instruction::CallBr: - return !cast<CallBase>(this)->doesNotAccessMemory(); + return !cast<CallBase>(this)->doesNotReadMemory(); case Instruction::Store: return !cast<StoreInst>(this)->isUnordered(); } |