aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2025-05-09 19:23:48 +0800
committerGitHub <noreply@github.com>2025-05-09 19:23:48 +0800
commit61a8da9367dc7949f36916749f6038453ea4197f (patch)
tree0510020f1ed0f8ad4036959d07d97a868206da85 /clang/lib/CodeGen/CodeGenModule.cpp
parent4923cffc1d3333cf679dd304dd6a8e7232d77d54 (diff)
downloadllvm-61a8da9367dc7949f36916749f6038453ea4197f.zip
llvm-61a8da9367dc7949f36916749f6038453ea4197f.tar.gz
llvm-61a8da9367dc7949f36916749f6038453ea4197f.tar.bz2
[Clang][CodeGen] Add workaround for old glibc `__PTR_ALIGN` macro (#137851)
This patch adds a workaround for the old glibc `__PTR_ALIGN` macro: ``` ((sizeof(long int) < sizeof(void *) ? (base) : (char *)0) + (((pointer) - (sizeof(long int) < sizeof(void *) ? (base) : (char *)0) + (align_mask)) & ~(align_mask))); ``` Closes https://github.com/llvm/llvm-project/issues/137833.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions