Disambiguate call to operator==.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 May 2012 19:32:11 +0000 (19:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 May 2012 19:32:11 +0000 (19:32 +0000)
clang++ and msvc happily had no problem with it but g++ refuses to compile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157126 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/ValueMap.h

index 121abc2b65f7ae4465bc7cd97197f7eaba8ac323..f7e255181e2333d506fe59e6ea47bea7d50e25a9 100644 (file)
@@ -269,7 +269,7 @@ struct DenseMapInfo<ValueMapCallbackVH<KeyT, ValueT, Config> > {
     return LHS == RHS;
   }
   static bool isEqual(const KeyT &LHS, const VH &RHS) {
-    return LHS == RHS;
+    return LHS == RHS.getValPtr();
   }
 };