From 83c7a424d96803088847861286bb96849ef4ce50 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 24 Dec 2019 01:14:15 -0800 Subject: [PATCH] DebugInfo: Add {} to address -Wdangling-else warning. --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index b91f613..21c6636 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1193,7 +1193,7 @@ void DwarfDebug::finalizeModuleInfo() { auto *CUNode = cast(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(), @@ -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. -- 2.7.4