diff options
author | Timothy Arceri <[email protected]> | 2016-10-04 11:25:25 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-10-04 22:33:51 +1100 |
commit | 338d3c0b0f9c56e68c31ff542513fb7fa9f1c099 (patch) | |
tree | 35d78f3b6dc2e89af9159f60265b0afa86efb6d2 /src/compiler | |
parent | 298c2e03d78c3abeb588306acd67aa88b197ee61 (diff) |
spirv: replace assert() with unreachable()
This fixes an uninitialized warning for is_vertex_input.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |