diff options
author | Nick Desaulniers <nickdesaulniers@users.noreply.github.com> | 2024-10-15 13:07:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 13:07:20 -0700 |
commit | 46200fcf941d16bc8a494a3915e1178502e37a3e (patch) | |
tree | a5ffc1430c9ffef3cf4aa38243b969d8b34f3d66 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 685bec722f008ae26593a5ebe3d58ca8e5c4a7c2 (diff) | |
download | llvm-46200fcf941d16bc8a494a3915e1178502e37a3e.zip llvm-46200fcf941d16bc8a494a3915e1178502e37a3e.tar.gz llvm-46200fcf941d16bc8a494a3915e1178502e37a3e.tar.bz2 |
[libc] fix -Wmissing-attributes in setjmp (#112415)
Fixes:
llvm-project/libc/src/setjmp/x86_64/setjmp.cpp:21:25: error: ‘int
__llvm_libc_19_0_0_git::setjmp(__jmp_buf*)’ specifies less restrictive
attribute than its target ‘int
__llvm_libc_19_0_0_git::__setjmp_impl__(__jmp_buf*)’: ‘nothrow’
[-Werror=missing-attributes]
21 | LLVM_LIBC_FUNCTION(int, setjmp, (__jmp_buf * buf)) {
| ^~~~~~
observed in the GCC build by manually expanding LLVM_LIBC_FUNCTION to add
`gnu::nothrow` to the alias.
We probably need to revisit adding nothrow throughout our declarations, so
there is probably a better way to clean this up in the future.
Link: #88054
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions