[PATCH] D155579: [Windows] Avoid using FileIndex for unique IDs on network mounts

Aaron Ballman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 11:41:24 PDT 2023


aaron.ballman added inline comments.


================
Comment at: llvm/include/llvm/Support/FileSystem.h:238-239
   uint32_t FileIndexLow = 0;
+  uint64_t PathHash = 0;
+  bool ReliableFileIndex = true;
   #endif
----------------
Some comments explaining that the hash is only expected to be valid if `ReliableFileIndex` is `false` may help.


================
Comment at: llvm/lib/Support/Windows/Path.inc:740-741
 
+  bool PathCanonicalized;
+  PathCanonicalized = false;
+  if (Path.empty()) {
----------------



================
Comment at: llvm/lib/Support/Windows/Path.inc:751-754
+  bool ReliableFileIndex;
+  uint64_t PathHash;
+  ReliableFileIndex = true;
+  PathHash = 0;
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155579/new/

https://reviews.llvm.org/D155579



More information about the llvm-commits mailing list