forked from OSchip/llvm-project
Add const qualifier on FieldChainInfoComparator::operator()
libcxx has user defined warning to check for non const call operator. Silence the warning by adding the const on operator(). llvm-svn: 335366
This commit is contained in:
parent
358a916aa8
commit
b3684db431
|
|
@ -85,7 +85,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FieldChainInfoComparator {
|
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() &&
|
assert(!lhs.Chain.isEmpty() && !rhs.Chain.isEmpty() &&
|
||||||
"Attempted to store an empty fieldchain!");
|
"Attempted to store an empty fieldchain!");
|
||||||
return *lhs.Chain.begin() < *rhs.Chain.begin();
|
return *lhs.Chain.begin() < *rhs.Chain.begin();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue