The bots just told me about a place in LLDB I missed in
a40db5502b when changing
`HeaderSearch::LoadedModuleMaps`, but I think this will fix it.
This commit is contained in:
Duncan P. N. Exon Smith 2020-12-14 14:41:12 -08:00
parent b61f288a58
commit d636b881bb

View file

@ -278,10 +278,10 @@ bool ClangModulesDeclVendorImpl::AddModule(const SourceModule &module,
HS.getFileMgr().getDirectory(module.search_path.GetStringRef());
if (!dir)
return error();
auto *file = HS.lookupModuleMapFile(*dir, is_framework);
auto file = HS.lookupModuleMapFile(*dir, is_framework);
if (!file)
return error();
if (!HS.loadModuleMapFile(file, is_system))
if (!HS.loadModuleMapFile(*file, is_system))
return error();
}
}