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