]> granicus.if.org Git - clang/commitdiff
Add a method required by the VC++ STL, patch by Hartmut Kaiser!
authorChris Lattner <sabre@nondot.org>
Mon, 3 Sep 2007 18:31:57 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Sep 2007 18:31:57 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41687 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaStmt.cpp

index d6c4c2d6d10e06dff984d728da44b431ffdcf04d..2924370df3a62e0e4ce6822a49010401c8017fe8 100644 (file)
@@ -246,6 +246,10 @@ namespace {
                     const llvm::APSInt &RHS) {
       return LHS.first < RHS;
     }
+    bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS,
+                    const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
+      return LHS.first < RHS.first;
+    }
     bool operator()(const llvm::APSInt &LHS,
                     const std::pair<llvm::APSInt, CaseStmt*> &RHS) {
       return LHS < RHS.first;