[DebugInfo] Drop unneeded format() calls (fix -Wformat-security) after 3b7ec64d59

This commit is contained in:
Fangrui Song 2020-06-09 09:55:25 -07:00
parent 4dcc0d1958
commit 81cca98768
1 changed files with 2 additions and 2 deletions

View File

@ -1048,7 +1048,7 @@ Error DWARFDebugLine::LineTable::parse(
uint8_t OpcodeLength = Prologue.StandardOpcodeLengths[Opcode - 1];
if (OpcodeLength != 0) {
if (Verbose)
*OS << format(" (operands: ");
*OS << " (operands: ";
for (uint8_t I = 0; I < OpcodeLength; ++I) {
uint64_t Value = TableData.getULEB128(OffsetPtr);
if (Verbose) {
@ -1058,7 +1058,7 @@ Error DWARFDebugLine::LineTable::parse(
}
}
if (Verbose)
*OS << format(")");
*OS << ')';
}
}
break;