[llvm] [llvm][DebugInfo] formatv in DWARFCFIPrinter (PR #191982)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 02:47:57 PDT 2026


================
@@ -69,32 +69,32 @@ static void printOperand(raw_ostream &OS, const DIDumpOptions &DumpOpts,
     break;
   case CFIProgram::OT_FactoredCodeOffset: // Always Unsigned
     if (P.codeAlign())
-      OS << format(" %" PRId64, Operand * P.codeAlign());
+      OS << formatv(" {0}", Operand * P.codeAlign());
----------------
s-barannikov wrote:

Well, anyway, it used to print the number as signed, now it prints it as unsigned.
So I'd still suggest to wrap it into int64_t() to preserve the behavior.
Same in other places.

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


More information about the llvm-commits mailing list