Currently we're limited to 32 bit ints in diagnostics.
With support for 4GB alignments coming soon, we need to report 4GB as the max alignment allowed.
I've tested that this does indeed properly print 2^32.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is there no diagnostic that could reasonably produce such a large value that would be easy to test (without needing a giant binary, etc)? (seem surprising to see this change without any test coverage)
Like a 64 bit non-type template parameter or the like, perhaps?
Comment Actions
Previously no, but https://reviews.llvm.org/D111250 modifies some tests to print 2^32, which was the motivating case behind this.