================ @@ -739,6 +795,12 @@ ModuleDepCollectorPP::handleTopLevelModule(const Module *M) { MDC.ScanInstance.getASTReader()->visitInputFileInfos( *MF, /*IncludeSystem=*/true, [&](const serialization::InputFileInfo &IFI, bool IsSystem) { + if (MD.IsShareable) { + auto FullFilePath = ASTReader::ResolveImportedPath( + PathBuf, IFI.UnresolvedImportedFilename, MF->BaseDirectory); + MD.IsShareable = isPathInSharedDir(SharedDirs, *FullFilePath); + PathBuf.resize_for_overwrite(256); ---------------- cyndyishida wrote:
I thought I was running into the assertion failure in `ResolveImportedPath`, but I can't reproduce it now. https://github.com/llvm/llvm-project/pull/130634 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits