[llvm] r190797 - TableGen: fix constness of new comparison function.
Tim Northover
tnorthover at apple.com
Mon Sep 16 10:33:41 PDT 2013
Author: tnorthover
Date: Mon Sep 16 12:33:40 2013
New Revision: 190797
URL: http://llvm.org/viewvc/llvm-project?rev=190797&view=rev
Log:
TableGen: fix constness of new comparison function.
libc++ didn't seem to like a non-const call operator.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=190797&r1=190796&r2=190797&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Mon Sep 16 12:33:40 2013
@@ -1065,7 +1065,7 @@ AsmMatcherInfo::getOperandClass(Record *
}
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
More information about the llvm-commits
mailing list