aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-07-20 18:31:41 -0700
committerFangrui Song <i@maskray.me>2023-07-20 18:31:41 -0700
commit4c2980c1a3c74bd292c3c9d8d740fa7e053971f8 (patch)
tree0a4069568d10d33cac9634cee95e0954807a130c /clang/lib/Lex/ModuleMap.cpp
parente52f0e7746c8f2e8c0328054cc0934d4710e372d (diff)
downloadllvm-4c2980c1a3c74bd292c3c9d8d740fa7e053971f8.zip
llvm-4c2980c1a3c74bd292c3c9d8d740fa7e053971f8.tar.gz
llvm-4c2980c1a3c74bd292c3c9d8d740fa7e053971f8.tar.bz2
[llvm-profdata] Stabilize iteration order for InstrProfWriter
If two functions are inserted to the same bucket, their order in the serialized profile is dependent on StringMap iteration order, which is not guaranteed to be deterministic. (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). Use a sort like we do in writeText.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions