diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-01-22 03:05:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-01-22 03:05:10 +0000 |
commit | 9817b24e74532c13bad2c7350f17e17473b8c57a (patch) | |
tree | 2a0931f957cc1804cc660c777a6cc8eec527d791 | |
parent | d10aacea5e2c8ea62e08956aa0a94fa2da60e148 (diff) |
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
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index ac92b90731..bfe7cbe4e0 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 |