[llvm] [DebugInfo] DWARFFormValue use formatv instead of format (PR #180498)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 08:32:37 PST 2026
DavidSpickett wrote:
The new test failed on Arm 32-bit: https://lab.llvm.org/buildbot/#/builders/154/builds/27811
```
../llvm/llvm/unittests/Support/FormatVariadicTest.cpp:408: Failure
Expected equality of these values:
"0x00000000ff"
printToString(100, format("0x%*.*x", HexDigits, HexDigits, N))
Which is: "0x0000000004"
```
(it prints the same failure twice)
Usually this down to using the wrong type, but I see that N is uint64_t which should keep it 64-bit even here.
Ah, maybe it's because on 32-bit, it would be `%lx`? Should you use those `PRIx64` macros in the format string to do that automatically?
https://github.com/llvm/llvm-project/pull/180498
More information about the llvm-commits
mailing list