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
This commit is contained in:
Benjamin Kramer 2012-05-19 19:32:11 +00:00
parent 03c8383324
commit 9e7e04823c

View 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();
}
};