forked from OSchip/llvm-project
Avoid crash if symbol returns a null name
llvm-svn: 205555
This commit is contained in:
parent
d3923aaa6e
commit
0fdeb7158e
|
@ -107,7 +107,7 @@ ItaniumABILanguageRuntime::GetDynamicTypeAndAddress (ValueObject &in_value,
|
||||||
if (symbol != NULL)
|
if (symbol != NULL)
|
||||||
{
|
{
|
||||||
const char *name = symbol->GetMangled().GetDemangledName().AsCString();
|
const char *name = symbol->GetMangled().GetDemangledName().AsCString();
|
||||||
if (strstr(name, vtable_demangled_prefix) == name)
|
if (name && strstr(name, vtable_demangled_prefix) == name)
|
||||||
{
|
{
|
||||||
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
|
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
|
||||||
if (log)
|
if (log)
|
||||||
|
|
Loading…
Reference in New Issue