Skip to content

Commit

Permalink
Add some missing [[noreturn]] attributes
Browse files Browse the repository at this point in the history
Missing in header for `pthread_exit` and `exit`.

Missing in spec file for `pthread_exit`.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D151143
  • Loading branch information
goldsteinn committed May 22, 2023
1 parent 916e9be commit e0b8f98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libc/spec/posix.td
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def POSIX : StandardSpec<"POSIX"> {
>,
FunctionSpec<
"pthread_exit",
RetValSpec<VoidType>,
RetValSpec<NoReturn>,
[ArgSpec<VoidPtr>]
>,
FunctionSpec<
Expand Down
2 changes: 1 addition & 1 deletion libc/src/pthread/pthread_exit.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace __llvm_libc {

void pthread_exit(void *retval);
[[noreturn]] void pthread_exit(void *retval);

} // namespace __llvm_libc

Expand Down
2 changes: 1 addition & 1 deletion libc/src/stdlib/exit.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace __llvm_libc {

void exit(int status);
[[noreturn]] void exit(int status);

} // namespace __llvm_libc

Expand Down

0 comments on commit e0b8f98

Please sign in to comment.