From 3ba6a840858cf3d352c71e6675bdd5a457c504d4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 1 Apr 2009 18:24:22 +0000 Subject: [PATCH] Constify method to make VC++ happy. Patch by Brian Diekelman! llvm-svn: 68222 --- utils/TableGen/ClangDiagnosticsEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp index 3d353518e20..5364f596872 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); } }; }