]> granicus.if.org Git - clang/commitdiff
Revert r112154, "Fix thinko in sorting operation", it depends on r112149 which
authorDaniel Dunbar <daniel@zuster.org>
Thu, 26 Aug 2010 03:53:44 +0000 (03:53 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 26 Aug 2010 03:53:44 +0000 (03:53 +0000)
doth lay upon the chopping block.

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

tools/libclang/CIndexCodeCompletion.cpp

index 910ef06c7f4fca288b9ea6b67d9faf22c9b052e6..825031bd4b4e730a0950d910d80e522d10132dab 100644 (file)
@@ -808,7 +808,7 @@ namespace {
         return false;
       
       result = llvm::StringRef(XText).compare(YText);
-      return result < 0;
+      return result;
     }
   };
 }
@@ -818,4 +818,4 @@ extern "C" {
                                        unsigned NumResults) {
     std::stable_sort(Results, Results + NumResults, OrderCompletionResults());
   }
-}
+}
\ No newline at end of file