TableGen: fix constness of new comparison function.
libc++ didn't seem to like a non-const call operator. llvm-svn: 190797
This commit is contained in:
parent
07ee5c44b4
commit
9c30f7a4ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue