nir: add fall through comment to nir_gather_info
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Aug 2018 00:04:51 +0000 (10:04 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 2 Aug 2018 23:30:57 +0000 (09:30 +1000)
This stops Coverity reporting a defect and helps make the code less
error-prone.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_gather_info.c

index d0b656ea741026d5cb87a3885a7db65bfa085815..4a030cb6256c169db3d319be7a858f0dd4202e8b 100644 (file)
@@ -288,6 +288,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
    case nir_intrinsic_end_primitive_with_counter:
       assert(shader->info.stage == MESA_SHADER_GEOMETRY);
       shader->info.gs.uses_end_primitive = 1;
+      /* fall through */
 
    case nir_intrinsic_emit_vertex:
       if (nir_intrinsic_stream_id(instr) > 0)