Don't crash if the TypeSP is empty.

llvm-svn: 263593
This commit is contained in:
Greg Clayton 2016-03-15 21:58:28 +00:00
parent 592afe73ad
commit 00df42459e
1 changed files with 4 additions and 1 deletions

View File

@ -428,7 +428,10 @@ public:
SetType (lldb::TypeSP type)
{
type_sp = type;
compiler_type = type_sp->GetForwardCompilerType ();
if (type_sp)
compiler_type = type_sp->GetForwardCompilerType ();
else
compiler_type.Clear();
}
lldb::TypeSP