From 107cfa2169299fe67caebe7d1f0d405ce727e420 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Mon, 16 Sep 2013 17:33:40 +0000 Subject: TableGen: fix constness of new comparison function. libc++ didn't seem to like a non-const call operator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190797 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/AsmMatcherEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index ff04d63d00..558090bbf6 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1065,7 +1065,7 @@ AsmMatcherInfo::getOperandClass(Record *Rec, int SubOpIdx) { } struct LessRegisterSet { - bool operator() (const RegisterSet &LHS, const RegisterSet & RHS) { + bool operator() (const RegisterSet &LHS, const RegisterSet & RHS) const { // std::set defines its own compariso "operator<", but it // performs a lexicographical comparison by T's innate comparison // for some reason. We don't want non-deterministic pointer -- cgit v1.2.3