sys: Replace __builtin_unreachable() with hex::unreachable()

This commit is contained in:
WerWolv
2022-03-22 09:08:34 +01:00
parent ea848dbfc0
commit 98dfc2e286
4 changed files with 24 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
#include <hex.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/helpers/intrinsics.hpp>
#include <hex/pattern_language/error.hpp>
#include <hex/pattern_language/token.hpp>
@@ -189,7 +190,7 @@ namespace hex::pl {
else if constexpr (S == Not)
return false;
else
__builtin_unreachable();
hex::unreachable();
}
template<Setting S = Normal>
@@ -220,7 +221,7 @@ namespace hex::pl {
partReset();
return false;
} else
__builtin_unreachable();
hex::unreachable();
}
template<Setting S = Normal>
@@ -235,7 +236,7 @@ namespace hex::pl {
else if constexpr (S == Not)
return true;
else
__builtin_unreachable();
hex::unreachable();
}
template<Setting S = Normal>
@@ -245,7 +246,7 @@ namespace hex::pl {
else if constexpr (S == Not)
return sequenceImpl<Not>(type, value) && oneOfImpl(args...);
else
__builtin_unreachable();
hex::unreachable();
}
template<Setting S = Normal>