From: Timothy Arceri Date: Tue, 4 Oct 2016 00:25:25 +0000 (+1100) Subject: spirv: replace assert() with unreachable() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=338d3c0b0f9c56e68c31ff542513fb7fa9f1c099;p=mesa.git spirv: replace assert() with unreachable() This fixes an uninitialized warning for is_vertex_input. Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 44c65ae83eb..634058c0e06 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1054,7 +1054,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member, is_vertex_input = false; location += VARYING_SLOT_VAR0; } else { - assert(!"Location must be on input or output variable"); + unreachable("Location must be on input or output variable"); } if (vtn_var->var) {