From: Benjamin Kramer Date: Wed, 13 Mar 2013 13:50:47 +0000 (+0000) Subject: Add one more overload to make VS2008's debug mody happy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dec29b61a49da09e8ed494dcc1466f160614f80d;p=oota-llvm.git Add one more overload to make VS2008's debug mody happy. sigh. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176946 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp index c6cafe59ebd..ee88ce77c09 100644 --- a/lib/Target/TargetLibraryInfo.cpp +++ b/lib/Target/TargetLibraryInfo.cpp @@ -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; + } }; }