diff options
author | Jorge Gorbe Moya <jgorbe@google.com> | 2018-11-07 22:30:01 +0000 |
---|---|---|
committer | Jorge Gorbe Moya <jgorbe@google.com> | 2018-11-07 22:30:01 +0000 |
commit | 9a031b8a93abc05c7fdac300da593630e2e1da46 (patch) | |
tree | c12fe83eeeafedf45e272ab88adc2152edf3a945 /lib/DebugInfo | |
parent | 69f971eb1814487fc23ee092a69532a8d152c80d (diff) | |
download | llvm-9a031b8a93abc05c7fdac300da593630e2e1da46.tar.gz |
Add parentheses to silence warning.
DWARFContext.cpp:356:20: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARF/DWARFContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARF/DWARFContext.cpp b/lib/DebugInfo/DWARF/DWARFContext.cpp index 99cf9b985c0..7ab54de6bc4 100644 --- a/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/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()); |