summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-07-06 21:56:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-07-06 21:56:57 +0000
commit9fc944ae3642399d1cacf34db3ba1e9ba4dada02 (patch)
treeed448a10a6a25a9a8338807ad5e235f723569c35 /llvm/lib/DebugInfo/PDB/Native
parentba02bc5226546d4883ae43d96a593313742302e5 (diff)
downloadbcm5719-llvm-9fc944ae3642399d1cacf34db3ba1e9ba4dada02.tar.gz
bcm5719-llvm-9fc944ae3642399d1cacf34db3ba1e9ba4dada02.zip
[PDB] memicmp only exists on Windows, use StringRef::compare_lower instead
llvm-svn: 336469
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
index c8437d2ef9e..2f0f76b38b7 100644
--- a/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
@@ -98,8 +98,8 @@ static bool gsiRecordLess(StringRef S1, StringRef S2) {
if (LLVM_UNLIKELY(!isAsciiString(S1) || !isAsciiString(S2)))
return memcmp(S1.data(), S2.data(), LS) < 0;
- // Both strings are ascii, use memicmp.
- return memicmp(S1.data(), S2.data(), LS) < 0;
+ // Both strings are ascii, perform a case-insenstive comparison.
+ return S1.compare_lower(S2.data()) < 0;
}
void GSIHashStreamBuilder::finalizeBuckets(uint32_t RecordZeroOffset) {
OpenPOWER on IntegriCloud