[llvm-commits] [llvm] r62745 - /llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
Bill Wendling
isanbard at gmail.com
Wed Jan 21 19:05:10 PST 2009
Author: void
Date: Wed Jan 21 21:05:10 2009
New Revision: 62745
URL: http://llvm.org/viewvc/llvm-project?rev=62745&view=rev
Log:
The operator<() and operator>() were reversing their tests. Have the test the correct way.
Modified:
llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h?rev=62745&r1=62744&r2=62745&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h Wed Jan 21 21:05:10 2009
@@ -104,10 +104,10 @@
/// 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
More information about the llvm-commits
mailing list