summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-08-14 23:15:48 +0000
committerGreg Clayton <gclayton@apple.com>2015-08-14 23:15:48 +0000
commit360dac7d58540ec6d5fc03e8836abe56a44f0961 (patch)
tree259462370e8a5a5644dd721dafdf03d29b295dc6 /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
parent7332e0455fd40597630f7ec3f36f64258c2f10c8 (diff)
downloadbcm5719-llvm-360dac7d58540ec6d5fc03e8836abe56a44f0961.tar.gz
bcm5719-llvm-360dac7d58540ec6d5fc03e8836abe56a44f0961.zip
Don't crash if we don't have a type system for a language.
llvm-svn: 245121
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp')
-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