From 81cca9876847c27fdedff910ad16bf1251a8d5e7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 9 Jun 2020 09:55:25 -0700 Subject: [PATCH] [DebugInfo] Drop unneeded format() calls (fix -Wformat-security) after 3b7ec64d59748765990ed99716034ab8d5533673 --- llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 4b449a5..be4c5d3 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -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; -- 2.7.4