[PATCH] D58924: Replace clang::FileData with llvm::vfs::Status

Ben Langmuir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 18:05:31 PST 2019


benlangmuir accepted this revision.
benlangmuir added a comment.
This revision is now accepted and ready to land.

LGTM, although I made a small suggestion for clarity.  FYI `InPCH` was used by PTH, which was removed a couple of months ago.



================
Comment at: clang/lib/Basic/FileManager.cpp:305
+    UFE = &UniqueRealFiles[Status.getUniqueID()];
+    Status = llvm::vfs::Status(
+      Status.getName(), Status.getUniqueID(),
----------------
Why copy Status back into Status instead of mutating the relevant fields?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D58924





More information about the cfe-commits mailing list