summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2018-11-07 22:30:01 +0000
committerJorge Gorbe Moya <jgorbe@google.com>2018-11-07 22:30:01 +0000
commitbf1badb6bb96308129b34ef3e510d20cc01fc04b (patch)
treeb9dac62ee1858c0a9bccf202486a997a058c0722 /llvm/lib/DebugInfo
parentbc233f5523f43de34788179a11e390aaa69c8209 (diff)
downloadbcm5719-llvm-bf1badb6bb96308129b34ef3e510d20cc01fc04b.tar.gz
bcm5719-llvm-bf1badb6bb96308129b34ef3e510d20cc01fc04b.zip
Add parentheses to silence warning.
DWARFContext.cpp:356:20: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses] llvm-svn: 346365
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 99cf9b985c0..7ab54de6bc4 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -353,7 +353,7 @@ void DWARFContext::dump(
auto dumpDebugInfo = [&](const char *Name, unit_iterator_range Units) {
OS << '\n' << Name << " contents:\n";
- if (DumpOffset = DumpOffsets[DIDT_ID_DebugInfo])
+ if ((DumpOffset = DumpOffsets[DIDT_ID_DebugInfo]))
for (const auto &U : Units)
U->getDIEForOffset(DumpOffset.getValue())
.dump(OS, 0, DumpOpts.noImplicitRecursion());
OpenPOWER on IntegriCloud