From 5025e88703092cff45868d1637aa517d937081d7 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 29 Aug 2016 12:13:52 +1000 Subject: [PATCH] spirv: replace assert with unreachable Fixes uninitialised warning for coord_components. Reviewed-by: Matt Turner Reviewed-by: Jason Ekstrand --- src/compiler/spirv/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index ca404d8beb3..fda38f91106 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -1426,7 +1426,7 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode, coord_components = 3; break; default: - assert("Invalid sampler type"); + unreachable("Invalid sampler type"); } if (is_array && texop != nir_texop_lod) -- 2.30.2