libcxx has user defined warning to check for non const call operator.
Silence the warning by adding the const on operator().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335366
91177308-0d34-0410-b5e6-
96231b3b80d8
};
struct FieldChainInfoComparator {
- bool operator()(const FieldChainInfo &lhs, const FieldChainInfo &rhs) {
+ bool operator()(const FieldChainInfo &lhs, const FieldChainInfo &rhs) const {
assert(!lhs.Chain.isEmpty() && !rhs.Chain.isEmpty() &&
"Attempted to store an empty fieldchain!");
return *lhs.Chain.begin() < *rhs.Chain.begin();