Author: Jan Svoboda Date: 2023-09-09T21:50:38-07:00 New Revision: bc933c904704f747fb63f6c93d09c6759936e255
URL: https://github.com/llvm/llvm-project/commit/bc933c904704f747fb63f6c93d09c6759936e255 DIFF: https://github.com/llvm/llvm-project/commit/bc933c904704f747fb63f6c93d09c6759936e255.diff LOG: [clang] NFCI: Use `FileEntryRef` in `ModuleManager` Added: Modified: clang/lib/Serialization/ModuleManager.cpp Removed: ################################################################################ diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 5b099b740e1d330..112d27e179dc3d0 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -143,15 +143,15 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, // being consistent across operating systems and across subsequent accesses // to the Modules map. auto implicitModuleNamesMatch = [](ModuleKind Kind, const ModuleFile *MF, - const FileEntry *Entry) -> bool { + FileEntryRef Entry) -> bool { if (Kind != MK_ImplicitModule) return true; - return Entry->getName() == MF->FileName; + return Entry.getName() == MF->FileName; }; // Check whether we already loaded this module, before if (ModuleFile *ModuleEntry = Modules.lookup(Entry)) { - if (implicitModuleNamesMatch(Type, ModuleEntry, Entry)) { + if (implicitModuleNamesMatch(Type, ModuleEntry, *Entry)) { // Check the stored signature. if (checkSignature(ModuleEntry->Signature, ExpectedSignature, ErrorStr)) return OutOfDate; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits