[clang][Interp] Support alignof()
authorTimm Bäder <tbaeder@redhat.com>
Wed, 2 Nov 2022 10:20:01 +0000 (11:20 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 11 Nov 2022 07:38:06 +0000 (08:38 +0100)
commit0dcfd0ce020b4d5fb8d9eb549150d750a6bab68d
tree7a3265693ebfbe714e7a6c282a864b1ac043bf4c
parent7863646fd206952492b9abdbf690be2c4198d728
[clang][Interp] Support alignof()

Support alignof() and __alignof() expressions.

Fixes #58816

Differential Revision: https://reviews.llvm.org/D137240
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/class-layout.cpp [new file with mode: 0644]
clang/test/AST/Interp/cxx20.cpp