diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2025-04-03 17:27:46 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2025-04-07 08:18:19 +0000 |
commit | 227a2b77d330a0e9fc32ba5d34a81598cb68c3ef (patch) | |
tree | cbc25555f93b4d387fef4328713ee8f19d44cb00 | |
parent | 9554470e7f876f8b05f2620ecca376c319191d1d (diff) | |
download | gcc-227a2b77d330a0e9fc32ba5d34a81598cb68c3ef.zip gcc-227a2b77d330a0e9fc32ba5d34a81598cb68c3ef.tar.gz gcc-227a2b77d330a0e9fc32ba5d34a81598cb68c3ef.tar.bz2 |
Revert part of 44ffe1193269
This commit got rid of msvc specific code and remove the else clause,
this triggered warning with tl::expected::value function.
gcc/rust/ChangeLog:
* util/expected.h: Use gcc_unreachable within gcc context.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/util/expected.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rust/util/expected.h b/gcc/rust/util/expected.h index a7ddd55..6f5ef1c 100644 --- a/gcc/rust/util/expected.h +++ b/gcc/rust/util/expected.h @@ -212,10 +212,8 @@ template <typename E> throw std::forward<E>(e); #else (void)e; -#ifdef _MSC_VER gcc_unreachable(); #endif -#endif } #ifndef TL_TRAITS_MUTEX @@ -2437,4 +2435,4 @@ void swap(expected<T, E> &lhs, } } // namespace tl -#endif
\ No newline at end of file +#endif |