diff options
author | Tim Northover <tnorthover@apple.com> | 2013-09-16 17:33:40 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-09-16 17:33:40 +0000 |
commit | 107cfa2169299fe67caebe7d1f0d405ce727e420 (patch) | |
tree | 6f1607361f097f878cb50508ff8433b186af8907 /utils | |
parent | 5c616f91a5136295bf83850bc3610bd28756e58e (diff) | |
download | external_llvm-107cfa2169299fe67caebe7d1f0d405ce727e420.tar.gz external_llvm-107cfa2169299fe67caebe7d1f0d405ce727e420.tar.bz2 external_llvm-107cfa2169299fe67caebe7d1f0d405ce727e420.zip |
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.cpp | 2 |
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 |