summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-19 19:32:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-19 19:32:11 +0000
commit9e7e04823cb472ae8c36ce354365ba76ba1bcb36 (patch)
treee6e1bffaa1172019104dea9d7021e22a62b3df3f /include
parent03c8383324da4fe42fae4e5685072a782935644d (diff)
downloadllvm-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.h2
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();
}
};