mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user