From: Timothy Arceri Date: Mon, 29 Aug 2016 02:13:52 +0000 (+1000) Subject: spirv: replace assert with unreachable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5025e88703092cff45868d1637aa517d937081d7;p=mesa.git spirv: replace assert with unreachable Fixes uninitialised warning for coord_components. Reviewed-by: Matt Turner Reviewed-by: Jason Ekstrand --- 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)