[libc-commits] [PATCH] D152323: [libc] Silence warning about returning from noreturn function

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 7 04:23:29 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb05c63fba66d: [libc] Silence warning about returning from noreturn function (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152323/new/

https://reviews.llvm.org/D152323

Files:
  libc/src/stdlib/exit.cpp


Index: libc/src/stdlib/exit.cpp
===================================================================
--- libc/src/stdlib/exit.cpp
+++ libc/src/stdlib/exit.cpp
@@ -19,6 +19,7 @@
 LLVM_LIBC_FUNCTION(void, exit, (int status)) {
   internal::call_exit_callbacks();
   quick_exit(status);
+  __builtin_unreachable();
 }
 
 } // namespace __llvm_libc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152323.529246.patch
Type: text/x-patch
Size: 344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230607/8994e9d6/attachment.bin>


More information about the libc-commits mailing list