From 9817b24e74532c13bad2c7350f17e17473b8c57a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 22 Jan 2009 03:05:10 +0000 Subject: [PATCH] The operator<() and operator>() were reversing their tests. Have the test the correct way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62745 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/MemoryDependenceAnalysis.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index ac92b90731e..bfe7cbe4e00 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -104,10 +104,10 @@ namespace llvm { /// is depended on. Otherwise, return null. Instruction *getInst() const { return Value.getPointer(); } - bool operator==(const MemDepResult &M) const { return M.Value == Value; } - bool operator!=(const MemDepResult &M) const { return M.Value != Value; } - bool operator<(const MemDepResult &M) const { return M.Value < Value; } - bool operator>(const MemDepResult &M) const { return M.Value > Value; } + bool operator==(const MemDepResult &M) const { return Value == M.Value; } + bool operator!=(const MemDepResult &M) const { return Value != M.Value; } + bool operator<(const MemDepResult &M) const { return Value < M.Value; } + bool operator>(const MemDepResult &M) const { return Value > M.Value; } private: friend class MemoryDependenceAnalysis; /// Dirty - Entries with this marker occur in a LocalDeps map or -- 2.34.1