1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

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
This commit is contained in:
Jorge Gorbe Moya 2018-11-07 22:30:01 +00:00
parent d04e46fc89
commit 7e8dd78773

View File

@ -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());