[llvm] [llvm][DebugInfo] formatv in DWARFCFIPrinter (PR #191982)
Konrad Kleine via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 02:41:11 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());
----------------
kwk wrote:
I think both are unsigned but the previous behaviour clearly was to print a `signed` number because of the `PRId64`.
```c++
uint64_t codeAlign() const { return CodeAlignmentFactor; }
```
I wonder if it was by accident or by design before?!
https://github.com/llvm/llvm-project/pull/191982
More information about the llvm-commits
mailing list