From 65309dab45ad79ed1409471342680d3cccaba941 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 22 Apr 2022 14:56:17 +0200 Subject: [PATCH] microsoft/compiler: s/assert()/unreachable()/ in emit_intrinsic() Use an unreachable() statement instead of the incorrect assertion in the unsupported intrinsic path. Reviewed-by: Erik Faye-Lund Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index bdca79bf9ec..ad3f962d4d9 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -4302,7 +4302,7 @@ emit_intrinsic(struct ntd_context *ctx, nir_intrinsic_instr *intr) case nir_intrinsic_load_workgroup_size: default: NIR_INSTR_UNSUPPORTED(&intr->instr); - assert("Unimplemented intrinsic instruction"); + unreachable("Unimplemented intrinsic instruction"); return false; } }