[all-commits] [llvm/llvm-project] 75d718: [VirtualFileSystem] Use map to stabilize iteration...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 19 22:25:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75d71800aa384ee58663d892c325572f5588df2a
      https://github.com/llvm/llvm-project/commit/75d71800aa384ee58663d892c325572f5588df2a
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-07-19 (Wed, 19 Jul 2023)

  Changed paths:
    M llvm/lib/Support/VirtualFileSystem.cpp

  Log Message:
  -----------
  [VirtualFileSystem] Use map to stabilize iteration order

StringMap iteration order is not guaranteed to be deterministic
(https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h).

Tested by `TEST_F(InMemoryFileSystemTest, DirectoryIteration)`.




More information about the All-commits mailing list