projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c299ea
)
drive by bug fix: DenseMapInfo::isEqual should be determined according to
author
Chris Lattner
<sabre@nondot.org>
Sat, 9 Apr 2011 21:20:23 +0000
(21:20 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 9 Apr 2011 21:20:23 +0000
(21:20 +0000)
isEqual of its members, not operator==.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129233
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/DenseMapInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/DenseMapInfo.h
b/include/llvm/ADT/DenseMapInfo.h
index 25e341bf4fd490a61a65cf5e793ecfbd06c53af1..744b6f4aef300996f08283aa407b28e4fad0382a 100644
(file)
--- a/
include/llvm/ADT/DenseMapInfo.h
+++ b/
include/llvm/ADT/DenseMapInfo.h
@@
-157,7
+157,10
@@
struct DenseMapInfo<std::pair<T, U> > {
key ^= (key >> 31);
return (unsigned)key;
}
- static bool isEqual(const Pair& LHS, const Pair& RHS) { return LHS == RHS; }
+ static bool isEqual(const Pair &LHS, const Pair &RHS) {
+ return FirstInfo::isEqual(LHS.first, RHS.first) &&
+ SecondInfo::isEqual(LHS.second, RHS.second);
+ }
};
} // end namespace llvm