Skip to content

Commit

Permalink
[clang][NFC] Replace TypeAlignment with alignof(T) (#69185)
Browse files Browse the repository at this point in the history
This patch replaces usages of `TypeAlignment` with `alignof(T)`, where `T` is type that will be created in allocated storage with placement-new. This is now possible, because `alignof` reports the correct alignment for `Type` and classes derived from it after #68377 was merged.

While preparing #68377 I verified via `static_assert` that there are no mismatches of alignment between `TypeAlignment` and alignment of types derived from `Type`, so no changes are expected to codegen.
  • Loading branch information
Endilll committed Oct 17, 2023
1 parent d2b74d7 commit f0601c7
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 101 deletions.

0 comments on commit f0601c7

Please sign in to comment.