[llvm] [llvm][DebugInfo] Use formatv() instead of format() (PR #191308)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 04:52:12 PDT 2026


================
@@ -859,7 +859,7 @@ void DWARFDebugNames::NameIndex::dumpName(ScopedPrinter &W,
   if (Hash)
     W.printHex("Hash", *Hash);
 
-  W.startLine() << format("String: 0x%08" PRIx64, NTE.getStringOffset());
+  W.startLine() << formatv("String: {0:x+8}", NTE.getStringOffset());
----------------
kwk wrote:

Addressed in https://github.com/llvm/llvm-project/commit/bd36b59f2dc168befbfed9487e3095f74ce99bce.

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


More information about the llvm-commits mailing list