[PATCH] D137240: [clang][Interp] Support alignof()

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 2 03:24:46 PDT 2022


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The test is just a copy of `clang/test/SemaCXX/class-layout.cpp`, but with the `__builtin_offsetof` calls commented out.

Not sure if this is the best way to test it, but adding special cases for the new interpreter to existing test cases doesn't seem like a good option either.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137240

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/test/AST/Interp/class-layout.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137240.472557.patch
Type: text/x-patch
Size: 15700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221102/f9f2fc2f/attachment-0001.bin>


More information about the cfe-commits mailing list