Constify method to make VC++ happy. Patch by Brian Diekelman!
authorTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 18:24:22 +0000 (18:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 18:24:22 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68222 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangDiagnosticsEmitter.cpp

index 3d353518e204b9f0a6f48db3de262d27574aee11..5364f596872e03fe1fa806ebc726009336e960a0 100644 (file)
@@ -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);
   }
 };
 }