diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-02-14 18:26:02 +0100 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-02-14 20:52:51 +0100 |
commit | 2a8f9a5e95dec3adcdee603358dc03def6d2245e (patch) | |
tree | 15ddae2e7ca832873a4ed81fe2f03b28abe9fe6b /libcxx/src/filesystem/filesystem_common.h | |
parent | b305de142cc26b0cf5ba6e9d314c1598ca39a60a (diff) | |
download | llvm-2a8f9a5e95dec3adcdee603358dc03def6d2245e.zip llvm-2a8f9a5e95dec3adcdee603358dc03def6d2245e.tar.gz llvm-2a8f9a5e95dec3adcdee603358dc03def6d2245e.tar.bz2 |
[libc++] Implement P0627R6 (Function to mark unreachable code)
Reviewed By: ldionne, Quuxplusone, #libc
Spies: arichardson, mstorsjo, libcxx-commits, mgorny
Differential Revision: https://reviews.llvm.org/D119152
Diffstat (limited to 'libcxx/src/filesystem/filesystem_common.h')
-rw-r--r-- | libcxx/src/filesystem/filesystem_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/filesystem/filesystem_common.h b/libcxx/src/filesystem/filesystem_common.h index 99bba27..211b778 100644 --- a/libcxx/src/filesystem/filesystem_common.h +++ b/libcxx/src/filesystem/filesystem_common.h @@ -14,11 +14,11 @@ #include "chrono" #include "climits" #include "cstdarg" -#include "cstdlib" #include "ctime" #include "filesystem" #include "ratio" #include "system_error" +#include <utility> #if defined(_LIBCPP_WIN32API) # define WIN32_LEAN_AND_MEAN @@ -178,7 +178,7 @@ struct ErrorHandler { case 2: __throw_filesystem_error(what, *p1_, *p2_, ec); } - _LIBCPP_UNREACHABLE(); + __libcpp_unreachable(); } _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 3, 0) @@ -197,7 +197,7 @@ struct ErrorHandler { case 2: __throw_filesystem_error(what, *p1_, *p2_, ec); } - _LIBCPP_UNREACHABLE(); + __libcpp_unreachable(); } _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 3, 4) |