nir: Fix copy and pasted error message in nir_validate.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 01:22:20 +0000 (18:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 16:36:46 +0000 (09:36 -0700)
These are nir_cf_nodes, not ALU instructions.
Also, use unreachable() to preempt said review feedback.

v2: Do it right (thanks Ilia).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_validate.c

index f247ae0691cf094f376ae27af804d821fdd02568..e8c9d7b6fec853ac62e676ef0297aefa6485fc7d 100644 (file)
@@ -680,8 +680,7 @@ validate_cf_node(nir_cf_node *node, validate_state *state)
       break;
 
    default:
-      assert(!"Invalid ALU instruction type");
-      break;
+      unreachable("Invalid CF node type");
    }
 }