[PATCH] D137240: [clang][Interp] Support alignof()
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 4 11:35:29 PDT 2022
aaron.ballman added a comment.
In D137240#3908229 <https://reviews.llvm.org/D137240#3908229>, @tbaeder wrote:
> Oh, this doesn't work:
>
> void test_alignas_operand() {
> alignas(8) char dummy;
> static_assert(__alignof(dummy) == 8);
> }
That's interesting! Based on the code, I would have thought that should work (you have support for getting the preferred alignment). I'm curious to see what fixes it!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137240/new/
https://reviews.llvm.org/D137240
More information about the cfe-commits
mailing list