From: Greg Clayton Date: Tue, 15 Mar 2016 21:58:28 +0000 (+0000) Subject: Don't crash if the TypeSP is empty. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00df42459e346a4b3c331bd0f00d06945380fa96;p=platform%2Fupstream%2Fllvm.git Don't crash if the TypeSP is empty. llvm-svn: 263593 --- diff --git a/lldb/include/lldb/Symbol/Type.h b/lldb/include/lldb/Symbol/Type.h index 224e0a1..5524cea 100644 --- a/lldb/include/lldb/Symbol/Type.h +++ b/lldb/include/lldb/Symbol/Type.h @@ -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