summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-03-15 21:58:28 +0000
committerGreg Clayton <gclayton@apple.com>2016-03-15 21:58:28 +0000
commit00df42459e346a4b3c331bd0f00d06945380fa96 (patch)
tree6c9307be3985ef847363d635d6ad9ddf8df0322b /lldb
parent592afe73ada21856f908a42486378b2860037ebd (diff)
downloadbcm5719-llvm-00df42459e346a4b3c331bd0f00d06945380fa96.tar.gz
bcm5719-llvm-00df42459e346a4b3c331bd0f00d06945380fa96.zip
Don't crash if the TypeSP is empty.
llvm-svn: 263593
Diffstat (limited to 'lldb')
-rw-r--r--lldb/include/lldb/Symbol/Type.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/include/lldb/Symbol/Type.h b/lldb/include/lldb/Symbol/Type.h
index 224e0a112df..5524cea4fb8 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
OpenPOWER on IntegriCloud