gallivm: Ignore unknown file type in non-debug builds.
authorVinson Lee <vlee@freedesktop.org>
Wed, 20 Nov 2013 07:16:34 +0000 (23:16 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 21 Nov 2013 06:35:36 +0000 (22:35 -0800)
Fixes "Uninitialized pointer read" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 37f7a569702084acb837874bbaec92222d7547fe..6d8dc8c6f1977731ef19a01895216efe96130251 100644 (file)
@@ -2410,6 +2410,7 @@ emit_dump_file(struct lp_build_tgsi_soa_context *bld,
             res = LLVMBuildLoad(builder, reg_ptr, "");
          } else {
             assert(0);
+            continue;
          }
 
          emit_dump_reg(gallivm, file, index, chan, res);