diff --git a/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp b/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp index 15596cbebd14..302c7e0a8919 100644 --- a/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp +++ b/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp @@ -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;