https://gcc.gnu.org/g:227a2b77d330a0e9fc32ba5d34a81598cb68c3ef

commit 227a2b77d330a0e9fc32ba5d34a81598cb68c3ef
Author: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com>
Date:   Thu Apr 3 17:27:46 2025 +0200

    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.pa...@embecosm.com>

Diff:
---
 gcc/rust/util/expected.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/rust/util/expected.h b/gcc/rust/util/expected.h
index a7ddd55a88d9..6f5ef1c8754b 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

Reply via email to