[llvm] 81cca98 - [DebugInfo] Drop unneeded format() calls (fix -Wformat-security) after 3b7ec64d59748765990ed99716034ab8d5533673

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 09:56:25 PDT 2020


Author: Fangrui Song
Date: 2020-06-09T09:56:13-07:00
New Revision: 81cca9876847c27fdedff910ad16bf1251a8d5e7

URL: https://github.com/llvm/llvm-project/commit/81cca9876847c27fdedff910ad16bf1251a8d5e7
DIFF: https://github.com/llvm/llvm-project/commit/81cca9876847c27fdedff910ad16bf1251a8d5e7.diff

LOG: [DebugInfo] Drop unneeded format() calls (fix -Wformat-security) after 3b7ec64d59748765990ed99716034ab8d5533673

Added: 
    

Modified: 
    llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index 4b449a5e2888..be4c5d305cce 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;


        


More information about the llvm-commits mailing list