From 338d3c0b0f9c56e68c31ff542513fb7fa9f1c099 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 4 Oct 2016 11:25:25 +1100 Subject: [PATCH] spirv: replace assert() with unreachable() This fixes an uninitialized warning for is_vertex_input. Reviewed-by: Jason Ekstrand --- src/compiler/spirv/vtn_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2