From 7605c67ada530dafb0ebd96eb6f15ff6bc597a8d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Apr 2011 21:20:23 +0000 Subject: [PATCH] drive by bug fix: DenseMapInfo::isEqual should be determined according to isEqual of its members, not operator==. llvm-svn: 129233 --- include/llvm/ADT/DenseMapInfo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/llvm/ADT/DenseMapInfo.h b/include/llvm/ADT/DenseMapInfo.h index 25e341bf4fd..744b6f4aef3 100644 --- a/include/llvm/ADT/DenseMapInfo.h +++ b/include/llvm/ADT/DenseMapInfo.h @@ -157,7 +157,10 @@ struct DenseMapInfo > { 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