diff options
author | Fangrui Song <i@maskray.me> | 2021-11-06 22:26:05 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-11-06 23:26:05 -0700 |
commit | 70986ea3d6aeacb5d10bfe3b75757611d4e7a379 (patch) | |
tree | ed6e3c7d6822769de3341873e5165b91103f2cc5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 815b9f53d85e32e13bf318be24e7ece0617ff85d (diff) | |
download | llvm-70986ea3d6aeacb5d10bfe3b75757611d4e7a379.zip llvm-70986ea3d6aeacb5d10bfe3b75757611d4e7a379.tar.gz llvm-70986ea3d6aeacb5d10bfe3b75757611d4e7a379.tar.bz2 |
[sanitizer][aarch64] Add cast to drop reliance on the type of uc_mcontext.__reserved
https://sourceware.org/bugzilla/show_bug.cgi?id=22742
uc_mcontext.__reserved probably should not be considered user visible API but
unfortunate it is: it is the only way to access cpu states of some Linux
asm/sigcontext.h extensions. That said, the declaration may be
long double __reserved[256]; (used by musl)
instead of
unsigned char __reserved[4096] __attribute__((__aligned__(16))); (glibc)
to avoid dependency on a GNU variable attribute.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions