Mark comparator call operator as const

llvm-svn: 290636
This commit is contained in:
Eric Fiselier 2016-12-27 23:15:58 +00:00
parent ddf0c26b6a
commit aa54e50105
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ namespace {
struct AliasPriorityComparator {
typedef std::pair<CodeGenInstAlias, int> ValueType;
bool operator()(const ValueType &LHS, const ValueType &RHS) {
bool operator()(const ValueType &LHS, const ValueType &RHS) const {
if (LHS.second == RHS.second) {
// We don't actually care about the order, but for consistency it
// shouldn't depend on pointer comparisons.