compiler/nir: add an ASSERTED
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 22 Jun 2019 18:38:17 +0000 (19:38 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 31 Jul 2019 08:41:05 +0000 (09:41 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_opt_vectorize.c

index dab7c2e1dad63eb96c5ce043e49668770f443525..a3681610a59dfbe1b6b7e7108d60c10a40d905bb 100644 (file)
@@ -335,7 +335,7 @@ vec_instr_stack_push(struct util_dynarray *stack, nir_instr *instr)
 static void
 vec_instr_stack_pop(struct util_dynarray *stack, nir_instr *instr)
 {
-   nir_instr *last = util_dynarray_pop(stack, nir_instr *);
+   ASSERTED nir_instr *last = util_dynarray_pop(stack, nir_instr *);
    assert(last == instr);
 }