diff options
author | Nick Desaulniers <nickdesaulniers@users.noreply.github.com> | 2024-01-08 08:51:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 08:51:44 -0800 |
commit | 12101ca8e322c4cbf40e44b5b1fbf7ea76aff581 (patch) | |
tree | 86b3b36e60422835865c5ea91b449722811c78fb /clang/lib/Lex/ModuleMap.cpp | |
parent | ff47989ec238dafe4a68c6a716e8dbccc9f559f5 (diff) | |
download | llvm-12101ca8e322c4cbf40e44b5b1fbf7ea76aff581.zip llvm-12101ca8e322c4cbf40e44b5b1fbf7ea76aff581.tar.gz llvm-12101ca8e322c4cbf40e44b5b1fbf7ea76aff581.tar.bz2 |
[libc] set -Wno-frame-address for thread.cpp (#77140)
The aarch64 code is using __builtin_return_address with a non-zero
parameter,
which generates the following warning:
llvm-project/libc/src/__support/threads/linux/thread.cpp:171:38: error:
calling '__builtin_frame_address' with a nonzero argument is unsafe
[-Werror,-Wframe-address]
171 | return reinterpret_cast<uintptr_t>(__builtin_frame_address(1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Disable this diagnostic just for this file so that we can enable
-Werror.
Fixes: #77007
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions