Skip to content

Commit b0007f3

Browse files
committed
Remove incorrect trap
1 parent d24e3eb commit b0007f3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/utility/unreachable.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ SNAP_BEGIN_NAMESPACE
1010

1111
[[noreturn]] inline void unreachable() noexcept
1212
{
13-
#if defined(_MSC_VER) && !defined(__clang__)
13+
#if defined(_MSC_VER) && !defined(__clang__)
1414
__fastfail(0u);
1515
std::abort();
1616
__assume(0);
17-
#else
18-
__builtin_trap();
17+
#else
1918
__builtin_unreachable();
20-
#endif
19+
#endif
2120
}
2221

2322
SNAP_END_NAMESPACE

0 commit comments

Comments
 (0)