summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-09-16 17:33:40 +0000
committerTim Northover <tnorthover@apple.com>2013-09-16 17:33:40 +0000
commit107cfa2169299fe67caebe7d1f0d405ce727e420 (patch)
tree6f1607361f097f878cb50508ff8433b186af8907 /utils
parent5c616f91a5136295bf83850bc3610bd28756e58e (diff)
downloadllvm-107cfa2169299fe67caebe7d1f0d405ce727e420.tar.gz
llvm-107cfa2169299fe67caebe7d1f0d405ce727e420.tar.bz2
llvm-107cfa2169299fe67caebe7d1f0d405ce727e420.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/AsmMatcherEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
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<T> 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