aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index 3d35351..5364f59 100644
--- a/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -135,8 +135,8 @@ static const std::string &getOptName(const Record *R) {
namespace {
struct VISIBILITY_HIDDEN CompareOptName {
- bool operator()(const Record* A, const Record* B) {
- return getOptName(A) < getOptName(B);
+ bool operator()(const Record* A, const Record* B) const {
+ return getOptName(A) < getOptName(B);
}
};
}