[lldb] Fix build error after 7bca6f45

This commit is contained in:
Jan Svoboda 2023-06-15 11:59:31 +02:00
parent 9792c804f6
commit 74113a4150

View File

@ -329,8 +329,8 @@ bool ClangModulesDeclVendorImpl::AddModule(const SourceModule &module,
bool is_system = true;
bool is_framework = false;
auto dir =
HS.getFileMgr().getDirectory(module.search_path.GetStringRef());
auto dir = HS.getFileMgr().getOptionalDirectoryRef(
module.search_path.GetStringRef());
if (!dir)
return error();
auto file = HS.lookupModuleMapFile(*dir, is_framework);