aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2025-04-03 17:27:46 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-04-08 10:17:16 +0200
commitd307dddfc1a7dd406e488b08a390ae5908542b1a (patch)
tree33e69807ed53aead1c0fce0b845b5242bc7b679b /gcc
parent72a0fb9d9897347e938f560aaf5f99e95838d5bd (diff)
downloadgcc-d307dddfc1a7dd406e488b08a390ae5908542b1a.zip
gcc-d307dddfc1a7dd406e488b08a390ae5908542b1a.tar.gz
gcc-d307dddfc1a7dd406e488b08a390ae5908542b1a.tar.bz2
gccrs: 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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/util/expected.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rust/util/expected.h b/gcc/rust/util/expected.h
index a9e3bc2..07ba877 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