forked from OSchip/llvm-project
ValueObjectVariable::GetClangAST should check that it has a valid Type before accessing it.
llvm-svn: 143393
This commit is contained in:
parent
42fbd62d92
commit
56bbb88689
|
@ -83,7 +83,10 @@ ValueObjectVariable::CalculateNumChildren()
|
|||
clang::ASTContext *
|
||||
ValueObjectVariable::GetClangAST ()
|
||||
{
|
||||
return m_variable_sp->GetType()->GetClangAST();
|
||||
Type *var_type = m_variable_sp->GetType();
|
||||
if (var_type)
|
||||
return var_type->GetClangAST();
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
Loading…
Reference in New Issue