TableGen: fix constness of new comparison function.
[oota-llvm.git] / utils / TableGen / AsmMatcherEmitter.cpp
index ff04d63d00defb5d70661fe9d6d4df4f5d367f6d..558090bbf63c28b60e85d049c28ae53e0a3ff32f 100644 (file)
@@ -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