summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-26 22:12:18 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-26 22:12:18 +0000
commit2b4669de8a893e2c62b808c509f2f3e74057f29a (patch)
treef076a9b24c726119c7a15e3fc9fa9ffe79269f6a /llvm/lib/CodeGen
parent357b36a2c00c3337fb7011dc3f91e072f0ab81ea (diff)
downloadbcm5719-llvm-2b4669de8a893e2c62b808c509f2f3e74057f29a.tar.gz
bcm5719-llvm-2b4669de8a893e2c62b808c509f2f3e74057f29a.zip
DebugInfo: Fix and test a regression caused by r207263 causing the DW_AT_object_pointer to go missing on blocks
Noticed by inspection. Test coverage added. llvm-svn: 207333
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 0465b8929a7..69f7d1146d9 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -538,9 +538,9 @@ DIE *DwarfDebug::createScopeChildrenDIE(
std::unique_ptr<DIE> Variable =
TheCU.constructVariableDIE(*DV, Scope->isAbstractScope());
assert(Variable);
- Children.push_back(std::move(Variable));
if (DV->isObjectPointer())
ObjectPointer = Variable.get();
+ Children.push_back(std::move(Variable));
}
for (LexicalScope *LS : Scope->getChildren())
if (DIE *Nested = constructScopeDIE(TheCU, LS))
OpenPOWER on IntegriCloud