diff options
-rw-r--r-- | src/compiler/nir/nir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index a2af3909464..f501e235c5c 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1998,7 +1998,7 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst) return nir_op_f2i; }; default: - assert(!"Invalid conversion"); + unreachable("Invalid conversion"); }; } @@ -2031,9 +2031,9 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst) case nir_type_float: return nir_op_d2f; default: - assert(!"Invalid conversion"); + unreachable("Invalid conversion"); }; default: - assert(!"Invalid conversion"); + unreachable("Invalid conversion"); }; } |