Skip to content

Commit 107cfa2

Browse files
committed
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
1 parent 5c616f9 commit 107cfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/TableGen/AsmMatcherEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ AsmMatcherInfo::getOperandClass(Record *Rec, int SubOpIdx) {
10651065
}
10661066

10671067
struct LessRegisterSet {
1068-
bool operator() (const RegisterSet &LHS, const RegisterSet & RHS) {
1068+
bool operator() (const RegisterSet &LHS, const RegisterSet & RHS) const {
10691069
// std::set<T> defines its own compariso "operator<", but it
10701070
// performs a lexicographical comparison by T's innate comparison
10711071
// for some reason. We don't want non-deterministic pointer

0 commit comments

Comments
 (0)