Add #ifdef LLDB_ENABLE_ALL guards to prevent accessing the PDB AST
parser, which we have disabled in our lldb.
This commit is contained in:
parent
06b606cfac
commit
a903123562
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang800-import/; revision=343306
@ -9901,8 +9901,10 @@ bool ClangASTContext::LayoutRecordType(
|
||||
lldb_private::ClangASTImporter *importer = nullptr;
|
||||
if (ast->m_dwarf_ast_parser_ap)
|
||||
importer = &ast->m_dwarf_ast_parser_ap->GetClangASTImporter();
|
||||
#ifdef LLDB_ENABLE_ALL
|
||||
if (!importer && ast->m_pdb_ast_parser_ap)
|
||||
importer = &ast->m_pdb_ast_parser_ap->GetClangASTImporter();
|
||||
#endif // LLDB_ENABLE_ALL
|
||||
if (!importer)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user