[lldb][Modules] Fix error handling of parseAndLoadModuleMapFile (#141220)
`parseAndLoadModuleMapFile` returns `true` on error. This seems to have always been an issue? This is now preventing me from fixing a different modules related issue. So this patch checks the return value correctly.
This commit is contained in:
parent
692d9f26b5
commit
052c70451a
@ -330,7 +330,7 @@ bool ClangModulesDeclVendorImpl::AddModule(const SourceModule &module,
|
||||
auto file = HS.lookupModuleMapFile(*dir, is_framework);
|
||||
if (!file)
|
||||
return error();
|
||||
if (!HS.parseAndLoadModuleMapFile(*file, is_system))
|
||||
if (HS.parseAndLoadModuleMapFile(*file, is_system))
|
||||
return error();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user