forked from OSchip/llvm-project
[lldb][NFC] NULL -> nullptr in DWARFASTParserClang::UpdateSymbolContextScopeForType
This commit is contained in:
parent
78ad22e0cc
commit
cfd9d39567
|
@ -1330,20 +1330,20 @@ TypeSP DWARFASTParserClang::UpdateSymbolContextScopeForType(
|
|||
DWARFDIE sc_parent_die = SymbolFileDWARF::GetParentSymbolContextDIE(die);
|
||||
dw_tag_t sc_parent_tag = sc_parent_die.Tag();
|
||||
|
||||
SymbolContextScope *symbol_context_scope = NULL;
|
||||
SymbolContextScope *symbol_context_scope = nullptr;
|
||||
if (sc_parent_tag == DW_TAG_compile_unit ||
|
||||
sc_parent_tag == DW_TAG_partial_unit) {
|
||||
symbol_context_scope = sc.comp_unit;
|
||||
} else if (sc.function != NULL && sc_parent_die) {
|
||||
} else if (sc.function != nullptr && sc_parent_die) {
|
||||
symbol_context_scope =
|
||||
sc.function->GetBlock(true).FindBlockByID(sc_parent_die.GetID());
|
||||
if (symbol_context_scope == NULL)
|
||||
if (symbol_context_scope == nullptr)
|
||||
symbol_context_scope = sc.function;
|
||||
} else {
|
||||
symbol_context_scope = sc.module_sp.get();
|
||||
}
|
||||
|
||||
if (symbol_context_scope != NULL)
|
||||
if (symbol_context_scope != nullptr)
|
||||
type_sp->SetSymbolContextScope(symbol_context_scope);
|
||||
|
||||
// We are ready to put this type into the uniqued list up at the module
|
||||
|
|
Loading…
Reference in New Issue