summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 4be6282c0d9..1f4a6426f99 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -598,7 +598,7 @@ SymbolFileDWARF::GetTypeSystemForLanguage (LanguageType language)
{
TypeSystem *type_system = m_obj_file->GetModule()->GetTypeSystemForLanguage (language);
- if (type_system->AsClangASTContext())
+ if (type_system && type_system->AsClangASTContext())
{
// Get the ClangAST so that we register the ClangExternalASTSource callbacks if needed...
GetClangASTContext();
OpenPOWER on IntegriCloud