[all-commits] [llvm/llvm-project] b05c63: [libc] Silence warning about returning from noretu...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Jun 7 04:23:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b05c63fba66dbb4dbed51797b4aca4706f75803b
https://github.com/llvm/llvm-project/commit/b05c63fba66dbb4dbed51797b4aca4706f75803b
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-06-07 (Wed, 07 Jun 2023)
Changed paths:
M libc/src/stdlib/exit.cpp
Log Message:
-----------
[libc] Silence warning about returning from noreturn function
The `exit` entrypoint calls into `quick_exit` which is marked noreturn
in some cases. This will cause errors because we then have control flow
externally. This warning can be silenced by using a
`__builtin_unreachable` instruction accordingly.
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D152323
More information about the All-commits
mailing list