================ @@ -3018,13 +3019,19 @@ void ASTWriter::WriteSubmodules(Module *WritingModule) { SourceLocationEncoding::RawLocEncoding DefinitionLoc = getRawSourceLocationEncoding(getAdjustedLocation(Mod->DefinitionLoc)); + ModuleMap &ModMap = PP->getHeaderSearchInfo().getModuleMap(); + FileID InferredFID = + Mod->IsInferred ? ModMap.getModuleMapFileIDForUniquing(Mod) : FileID(); + int Inferred = getAdjustedFileID(InferredFID).getOpaqueValue(); ---------------- benlangmuir wrote:
Nit: I would name this something less generic like "InferredAdjustedFID" https://github.com/llvm/llvm-project/pull/113389 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits