Add one more overload to make VS2008's debug mody happy.

sigh.

llvm-svn: 176946
This commit is contained in:
Benjamin Kramer 2013-03-13 13:50:47 +00:00
parent da9959242b
commit 10d47de154

View File

@ -610,6 +610,9 @@ struct StringComparator {
// Provided for compatibility with MSVC's debug mode.
bool operator()(StringRef LHS, const char *RHS) const { return LHS < RHS; }
bool operator()(StringRef LHS, StringRef RHS) const { return LHS < RHS; }
bool operator()(const char *LHS, const char *RHS) const {
return std::strcmp(LHS, RHS) < 0;
}
};
}