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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2009-04-01 18:24:22 +00:00
parent 77c5b0d7dc
commit ef66abeaee

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