projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592afe7
)
Don't crash if the TypeSP is empty.
author
Greg Clayton
<gclayton@apple.com>
Tue, 15 Mar 2016 21:58:28 +0000
(21:58 +0000)
committer
Greg Clayton
<gclayton@apple.com>
Tue, 15 Mar 2016 21:58:28 +0000
(21:58 +0000)
llvm-svn: 263593
lldb/include/lldb/Symbol/Type.h
patch
|
blob
|
history
diff --git
a/lldb/include/lldb/Symbol/Type.h
b/lldb/include/lldb/Symbol/Type.h
index
224e0a1
..
5524cea
100644
(file)
--- 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