1 parent b0007f3 commit 6508a7cCopy full SHA for 6508a7c
1 file changed
src/utility/unreachable.cpp
@@ -8,11 +8,13 @@
8
9
SNAP_BEGIN_NAMESPACE
10
11
-[[noreturn]] inline void unreachable() noexcept
+[[noreturn]] void unreachable() noexcept
12
{
13
#if defined(_MSC_VER) && !defined(__clang__)
14
__fastfail(0u);
15
+#endif
16
std::abort();
17
+#if defined(_MSC_VER) && !defined(__clang__)
18
__assume(0);
19
#else
20
__builtin_unreachable();
0 commit comments