[cfe-commits] r90662 - /cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Dec 5 02:07:06 PST 2009
Author: d0k
Date: Sat Dec 5 04:07:04 2009
New Revision: 90662
URL: http://llvm.org/viewvc/llvm-project?rev=90662&view=rev
Log:
strcasecmp is unportable.
Modified:
cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=90662&r1=90661&r2=90662&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Sat Dec 5 04:07:04 2009
@@ -1129,7 +1129,7 @@
: X.Pattern->getTypedText();
const char *YStr = (Y.Kind == Result::RK_Keyword)? Y.Keyword
: Y.Pattern->getTypedText();
- return strcasecmp(XStr, YStr) < 0;
+ return llvm::StringRef(XStr).compare_lower(YStr) < 0;
}
// Result kinds are ordered by decreasing importance.
More information about the cfe-commits
mailing list