summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-12-24 01:14:15 -0800
committerDavid Blaikie <dblaikie@gmail.com>2019-12-24 01:14:15 -0800
commit83c7a424d96803088847861286bb96849ef4ce50 (patch)
tree9766bb5c07a0e8383424bc1ba59a8d59e70b9bf5 /llvm/lib/CodeGen
parent34766da0676cc53a5a90575b98027e59881cd68a (diff)
downloadbcm5719-llvm-83c7a424d96803088847861286bb96849ef4ce50.tar.gz
bcm5719-llvm-83c7a424d96803088847861286bb96849ef4ce50.zip
DebugInfo: Add {} to address -Wdangling-else warning.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index b91f613f1ce..21c6636e94f 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<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(),
@@ -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.
OpenPOWER on IntegriCloud