diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-19 19:32:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-19 19:32:11 +0000 |
commit | 9e7e04823cb472ae8c36ce354365ba76ba1bcb36 (patch) | |
tree | e6e1bffaa1172019104dea9d7021e22a62b3df3f /include | |
parent | 03c8383324da4fe42fae4e5685072a782935644d (diff) | |
download | llvm-9e7e04823cb472ae8c36ce354365ba76ba1bcb36.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/ValueMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ValueMap.h b/include/llvm/ADT/ValueMap.h index 121abc2b65f7..f7e255181e23 100644 --- a/include/llvm/ADT/ValueMap.h +++ b/include/llvm/ADT/ValueMap.h @@ -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(); } }; |