[llvm] [Support][CHERI] Refactor CHERICapabilityFormatBase to embrace CRTP (PR #205623)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 03:14:34 PDT 2026
================
@@ -23,29 +23,41 @@ struct CHERICapabilityFormatBase {
/// Returns the "alignment mask" for an allocation of size \p Length. This
/// mask is 0 where the capability format alignment requires the
/// address to be 0, and 1 otherwise.
- LLVM_ABI static AddressType getAlignmentMask(AddressType Length);
+ LLVM_ABI static AddressType getAlignmentMask(AddressType Length) {
----------------
jrtc27 wrote:
Indeed the ABI check complains about exactly these three
https://github.com/llvm/llvm-project/pull/205623
More information about the llvm-commits
mailing list