[cfe-commits] r112154 - /cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
Douglas Gregor
dgregor at apple.com
Wed Aug 25 19:54:05 PDT 2010
Author: dgregor
Date: Wed Aug 25 21:54:05 2010
New Revision: 112154
URL: http://llvm.org/viewvc/llvm-project?rev=112154&view=rev
Log:
Fix thinko in sorting operation
Modified:
cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
Modified: cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp?rev=112154&r1=112153&r2=112154&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp (original)
+++ cfe/trunk/tools/libclang/CIndexCodeCompletion.cpp Wed Aug 25 21:54:05 2010
@@ -808,7 +808,7 @@
return false;
result = llvm::StringRef(XText).compare(YText);
- return result;
+ return result < 0;
}
};
}
@@ -818,4 +818,4 @@
unsigned NumResults) {
std::stable_sort(Results, Results + NumResults, OrderCompletionResults());
}
-}
\ No newline at end of file
+}
More information about the cfe-commits
mailing list