From dfbcba5ae0b5657f776db799d8dbd7e69a023c5f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 13 Mar 2013 13:50:47 +0000 Subject: [PATCH] Add one more overload to make VS2008's debug mody happy. sigh. llvm-svn: 176946 --- llvm/lib/Target/TargetLibraryInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp index c6cafe59ebd8..ee88ce77c09f 100644 --- a/llvm/lib/Target/TargetLibraryInfo.cpp +++ b/llvm/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; + } }; }