1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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 818a08f22e
commit 3ba6a84085

View File

@ -135,7 +135,7 @@ static const std::string &getOptName(const Record *R) {
namespace { namespace {
struct VISIBILITY_HIDDEN CompareOptName { struct VISIBILITY_HIDDEN CompareOptName {
bool operator()(const Record* A, const Record* B) { bool operator()(const Record* A, const Record* B) const {
return getOptName(A) < getOptName(B); return getOptName(A) < getOptName(B);
} }
}; };