From 360dac7d58540ec6d5fc03e8836abe56a44f0961 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 14 Aug 2015 23:15:48 +0000 Subject: [PATCH] Don't crash if we don't have a type system for a language. llvm-svn: 245121 --- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 4be6282c0d90..1f4a6426f99c 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();