OSDN Git Service

i965/vec4: Make the vec4_visitor::nir_emit_instr default case unreachable
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 3 Jul 2018 03:29:27 +0000 (20:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Jul 2018 04:13:32 +0000 (21:13 -0700)
commit965a06dbd7401fb319b6f85ca55c9687a05335f1
treedd534c1a180d60cb68647b46c52b77266dcf63a4
parenta4d478732712799d47f32cdbd2a7dca01239dc70
i965/vec4: Make the vec4_visitor::nir_emit_instr default case unreachable

The bug fixed by the previous commit went undetected because extra
stderr messages are not flagged by the CI.  Copy the solution from
fs_visitor::nir_emit_instr and mark the default case unreachable.

An alternate solution is to delete the default case so that the compiler
will issue a warning.  That may require more work since there are other
(impossible) cases that exist.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_vec4_nir.cpp