From aa54e501058361bef34613c6b3f1905ca48f741b Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 27 Dec 2016 23:15:58 +0000 Subject: [PATCH] Mark comparator call operator as const llvm-svn: 290636 --- llvm/utils/TableGen/AsmWriterEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index 3d4f2ab30f50..a7c6104aaa21 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -737,7 +737,7 @@ namespace { struct AliasPriorityComparator { typedef std::pair 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.