mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Use a reference rather than a pointer as we don't expect a NULL
DbgVariable. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -578,7 +578,7 @@ DIE *DwarfDebug::createScopeChildrenDIE(CompileUnit *TheCU, LexicalScope *Scope,
|
||||
for (unsigned i = 0, N = CurrentFnArguments.size(); i < N; ++i)
|
||||
if (DbgVariable *ArgDV = CurrentFnArguments[i])
|
||||
if (DIE *Arg =
|
||||
TheCU->constructVariableDIE(ArgDV, Scope->isAbstractScope())) {
|
||||
TheCU->constructVariableDIE(*ArgDV, Scope->isAbstractScope())) {
|
||||
Children.push_back(Arg);
|
||||
if (ArgDV->isObjectPointer()) ObjectPointer = Arg;
|
||||
}
|
||||
@@ -587,7 +587,7 @@ DIE *DwarfDebug::createScopeChildrenDIE(CompileUnit *TheCU, LexicalScope *Scope,
|
||||
const SmallVectorImpl<DbgVariable *> &Variables =ScopeVariables.lookup(Scope);
|
||||
for (unsigned i = 0, N = Variables.size(); i < N; ++i)
|
||||
if (DIE *Variable =
|
||||
TheCU->constructVariableDIE(Variables[i], Scope->isAbstractScope())) {
|
||||
TheCU->constructVariableDIE(*Variables[i], Scope->isAbstractScope())) {
|
||||
Children.push_back(Variable);
|
||||
if (Variables[i]->isObjectPointer()) ObjectPointer = Variable;
|
||||
}
|
||||
@@ -999,7 +999,7 @@ void DwarfDebug::collectDeadVariables() {
|
||||
continue;
|
||||
DbgVariable NewVar(DV, NULL, this);
|
||||
if (DIE *VariableDIE =
|
||||
SPCU->constructVariableDIE(&NewVar, false))
|
||||
SPCU->constructVariableDIE(NewVar, false))
|
||||
SPDIE->addChild(VariableDIE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user