diff options
author | Eric Christopher <echristo@gmail.com> | 2013-11-15 01:43:19 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-11-15 01:43:19 +0000 |
commit | 7b641815290f34f0212e4cb7b26ed1708270cb97 (patch) | |
tree | 0bb2a7551512b6476cdb8558a35894af62084b97 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 59d3ae6cdc4316ad338cd848251f33a236ccb36c (diff) | |
download | external_llvm-7b641815290f34f0212e4cb7b26ed1708270cb97.zip external_llvm-7b641815290f34f0212e4cb7b26ed1708270cb97.tar.gz external_llvm-7b641815290f34f0212e4cb7b26ed1708270cb97.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 632f1ab..00a43a7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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); } } |