projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34766da
)
DebugInfo: Add {} to address -Wdangling-else warning.
author
David Blaikie
<dblaikie@gmail.com>
Tue, 24 Dec 2019 09:14:15 +0000
(
01:14
-0800)
committer
David Blaikie
<dblaikie@gmail.com>
Tue, 24 Dec 2019 09:14:15 +0000
(
01:14
-0800)
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index
b91f613
..
21c6636
100644
(file)
--- 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.