diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-05-09 19:23:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-09 19:23:48 +0800 |
commit | 61a8da9367dc7949f36916749f6038453ea4197f (patch) | |
tree | 0510020f1ed0f8ad4036959d07d97a868206da85 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4923cffc1d3333cf679dd304dd6a8e7232d77d54 (diff) | |
download | llvm-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