aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-10-17 13:04:49 +0400
committerGitHub <noreply@github.com>2023-10-17 13:04:49 +0400
commitf0601c7569c6e2001b180136e1b699f577fd5c06 (patch)
treee963300a945f45849b9fe56d46aed818df9ff1e6 /clang/lib/CodeGen/CodeGenFunction.cpp
parentd2b74d7e4217b03e9f127505fe42410ab096afe6 (diff)
downloadllvm-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