commit | ef2ae740c6d82e3d310064a17e884dec024c55a8 | [log] [tgz] |
---|---|---|
author | Justin Bogner <mail@justinbogner.com> | Tue Sep 25 17:29:30 2018 +0000 |
committer | Justin Bogner <mail@justinbogner.com> | Tue Sep 25 17:29:30 2018 +0000 |
tree | 76068a4e7ff096a322bb4d2a2217259e69a8e047 | |
parent | ae343483544e249d03e9be4ac17812dc7f85a55e [diff] [blame] |
Revert "[DebugInfo] Do not generate address info for removed debug labels." The added test is failing on macOS: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/53550/ This reverts r342943. llvm-svn: 342993
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 496c80a..ee68219 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -865,9 +865,10 @@ llvm_unreachable("DbgEntity must be DbgVariable or DbgLabel."); } - if (Label) - if (const auto *Sym = Label->getSymbol()) - addLabelAddress(*Die, dwarf::DW_AT_low_pc, Sym); + if (Label) { + const MCSymbol *Sym = Label->getSymbol(); + addLabelAddress(*Die, dwarf::DW_AT_low_pc, Sym); + } } DbgEntity *DwarfCompileUnit::getExistingAbstractEntity(const DINode *Node) {