nir: Fix copy and pasted error message in nir_validate.

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>
This commit is contained in:
Kenneth Graunke 2015-03-27 18:22:20 -07:00
parent 31dc63d5ca
commit 72b06fb08e
1 changed files with 1 additions and 2 deletions

View 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");
}
}