diff --git a/ggml/src/ggml-quants.c b/ggml/src/ggml-quants.c index 1d70c6c7d0..0c34ca7cd6 100644 --- a/ggml/src/ggml-quants.c +++ b/ggml/src/ggml-quants.c @@ -2216,8 +2216,7 @@ static inline uint8_t map_int8_to_uint2_idx(int32_t v0) { case 3: return 3; default: - GGML_ASSERT(false); - return 0; + GGML_UNREACHABLE(); } } @@ -2233,8 +2232,7 @@ static inline int32_t map_uint2_idx_to_int8(uint8_t v0) { case 3: return 3; default: - GGML_ASSERT(false); - return 0; + GGML_UNREACHABLE(); } }