Add one more overload to make VS2008's debug mody happy.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 Mar 2013 13:50:47 +0000 (13:50 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 Mar 2013 13:50:47 +0000 (13:50 +0000)
sigh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176946 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLibraryInfo.cpp

index c6cafe59ebd8c9d59ba0f8c35556b83fb02ce10b..ee88ce77c09fc3d525059588cca13442979f34b2 100644 (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;
+  }
 };
 }