[all-commits] [llvm/llvm-project] f15262: [Support] Fixup for formatting hex on 32 bit (#181...
Konrad Kleine via All-commits
all-commits at lists.llvm.org
Mon Feb 16 01:04:06 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f152625bb850fe88224887eb2da2ce8c78f12abc
https://github.com/llvm/llvm-project/commit/f152625bb850fe88224887eb2da2ce8c78f12abc
Author: Konrad Kleine <kkleine at redhat.com>
Date: 2026-02-16 (Mon, 16 Feb 2026)
Changed paths:
M llvm/unittests/Support/FormatVariadicTest.cpp
Log Message:
-----------
[Support] Fixup for formatting hex on 32 bit (#181338)
Without the `PRIx64`, the test won't work on 32 bit architectures.
See this comment:
https://github.com/llvm/llvm-project/pull/180498#issuecomment-3891979182
The issue is that `PRIx64` expands differently depending on the
architecture. In the original code modified in #180498 the [macro was
used](https://github.com/llvm/llvm-project/pull/180498/changes#diff-5dcf6451d2bf9e9e3a8d28b0212263a8db576045b1d4eab80cca1bfd13a3bb76L356):
```diff
- OS << format("0x%*.*" PRIx64, HexDigits, HexDigits, Address);
+ OS << formatv("0x{0:x-}",
+ fmt_align(Address, AlignStyle::Right, HexDigits, '0'));
```
I simply didn't use it in my test because on my architecture the
`PRIx64` wasn't necessary.
This is a fixup for #180498 and it should unblock the
[clang-armv7-vfpv3-2stage](https://lab.llvm.org/buildbot/#/builders/135)
builder.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list