aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-10-08 23:45:10 +0000
committerSteve Naroff <snaroff@apple.com>2009-10-08 23:45:10 +0000
commit7f5111212f1b11f894a2cae11a39311989111fbf (patch)
treee650799f121626d12d0ecf3881997bc1b497bd6f /lib/Sema/SemaCodeComplete.cpp
parent43d8176d2e8e304b2d419fb0fe139cc07af80dea (diff)
- Fixup SortCodeCompleteResult() to properly sort keywords on Mac OS (compare was system dependent). Worked on Linux, failed on Mac OS (which caused the recently added testcase to fail on Linux).
- Sort results in testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--lib/Sema/SemaCodeComplete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp
index b648702650..d7697a7333 100644
--- a/lib/Sema/SemaCodeComplete.cpp
+++ b/lib/Sema/SemaCodeComplete.cpp
@@ -986,7 +986,7 @@ namespace {
Y.Declaration->getDeclName());
case Result::RK_Keyword:
- return strcmp(X.Keyword, Y.Keyword) == -1;
+ return strcmp(X.Keyword, Y.Keyword) < 0;
}
// Silence GCC warning.