Skip to content

Commit

Permalink
DebugInfo: Add {} to address -Wdangling-else warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Dec 24, 2019
1 parent 34766da commit 83c7a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Expand Up @@ -1193,7 +1193,7 @@ void DwarfDebug::finalizeModuleInfo() {

auto *CUNode = cast<DICompileUnit>(P.first);
// If compile Unit has macros, emit "DW_AT_macro_info" attribute.
if (CUNode->getMacros())
if (CUNode->getMacros()) {
if (useSplitDwarf())
TheCU.addLabelDelta(TheCU.getUnitDie(), dwarf::DW_AT_macro_info,
U.getMacroLabelBegin(),
Expand All @@ -1202,6 +1202,7 @@ void DwarfDebug::finalizeModuleInfo() {
U.addSectionLabel(U.getUnitDie(), dwarf::DW_AT_macro_info,
U.getMacroLabelBegin(),
TLOF.getDwarfMacinfoSection()->getBeginSymbol());
}
}

// Emit all frontend-produced Skeleton CUs, i.e., Clang modules.
Expand Down

0 comments on commit 83c7a42

Please sign in to comment.