nir: Convert the if-test for num_inputs == 2 to an assertion
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Apr 2015 22:20:57 +0000 (15:20 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 16 Apr 2015 16:56:49 +0000 (09:56 -0700)
commit94aab6cde696ab1cd1243f5c62444166efb1a2fa
treee93f2ccacff004af0cf836fdfa62d1280b43db6a
parent61293bfcedcab450e1a6f3301152bda5f6e348ed
nir: Convert the if-test for num_inputs == 2 to an assertion

Suggested by Jason on a different patch after some comments /
questions by Ilia.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Connor Abbott <cwabott0@gmail.com>
src/glsl/nir/nir_search.c