From 9e7e04823cb472ae8c36ce354365ba76ba1bcb36 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 19 May 2012 19:32:11 +0000 Subject: [PATCH] Disambiguate call to operator==. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h index 121abc2b65f..f7e255181e2 100644 --- a/include/llvm/ADT/ValueMap.h +++ b/include/llvm/ADT/ValueMap.h @@ -269,7 +269,7 @@ struct DenseMapInfo > { return LHS == RHS; } static bool isEqual(const KeyT &LHS, const VH &RHS) { - return LHS == RHS; + return LHS == RHS.getValPtr(); } }; -- 2.34.1