diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-10-17 13:04:49 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 13:04:49 +0400 |
commit | f0601c7569c6e2001b180136e1b699f577fd5c06 (patch) | |
tree | e963300a945f45849b9fe56d46aed818df9ff1e6 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d2b74d7e4217b03e9f127505fe42410ab096afe6 (diff) | |
download | llvm-f0601c7569c6e2001b180136e1b699f577fd5c06.zip llvm-f0601c7569c6e2001b180136e1b699f577fd5c06.tar.gz llvm-f0601c7569c6e2001b180136e1b699f577fd5c06.tar.bz2 |
[clang][NFC] Replace TypeAlignment with alignof(T) (#69185)
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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions