[llvm] [llvm][DebugInfo] formatv in DWARFGdbIndex (PR #191994)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 02:59:31 PDT 2026


================
@@ -24,13 +24,13 @@ using namespace llvm;
 // https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html
 
 void DWARFGdbIndex::dumpCUList(raw_ostream &OS) const {
-  OS << format("\n  CU list offset = 0x%x, has %" PRId64 " entries:",
-               CuListOffset, (uint64_t)CuList.size())
+  OS << formatv("\n  CU list offset = {0:x}, has {1} entries:", CuListOffset,
+                (uint64_t)CuList.size())
----------------
kwk wrote:

Fixed in 61beb1a7751bd6d0fa9e863bcbd6c4ab50540509

https://github.com/llvm/llvm-project/pull/191994


More information about the llvm-commits mailing list