aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-10-05 23:00:35 +0200
committerSam McCall <sam.mccall@gmail.com>2022-10-05 23:02:28 +0200
commit60b4b39f5a78661e2b9d222cf6ba7d9d5d7511ed (patch)
tree623f80025f01249f7b60ae4cccb254ce4de5f4e3 /clang/lib/Lex/ModuleMap.cpp
parent6bbe7d376e48946ea5450ca4a7d48637ed6a67a4 (diff)
downloadllvm-60b4b39f5a78661e2b9d222cf6ba7d9d5d7511ed.zip
llvm-60b4b39f5a78661e2b9d222cf6ba7d9d5d7511ed.tar.gz
llvm-60b4b39f5a78661e2b9d222cf6ba7d9d5d7511ed.tar.bz2
[clangd] Avoid lexicographic compare when sorting SymbolIDs. NFC
These are 8 bytes and we don't care about the actual ordering, so use integer compare. The array generated code has some extra byte swaps (clang), calls memcmp (gcc) or inlines a big chain of comparisons (MSVC): https://godbolt.org/z/e79r6jM6K
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions