Constify method to make VC++ happy. Patch by Brian Diekelman!

llvm-svn: 68222
This commit is contained in:
Ted Kremenek 2009-04-01 18:24:22 +00:00
parent fbc8c132ba
commit 061cf25072
1 changed files with 2 additions and 2 deletions

View 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);
}
};
}