intel/compiler: silence unitialized variable warning in opt_vector_float()
authorBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 15:50:13 +0000 (08:50 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 17:23:11 +0000 (10:23 -0700)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/compiler/brw_vec4.cpp

index fe368518fba00486a543b67bdd86e62c57d93f84..2e9de29b4f2aa8be58690e9000788ffcb90edc60 100644 (file)
@@ -414,7 +414,7 @@ vec4_visitor::opt_vector_float()
 
       foreach_inst_in_block_safe(vec4_instruction, inst, block) {
          int vf = -1;
-         enum brw_reg_type need_type;
+         enum brw_reg_type need_type = BRW_REGISTER_TYPE_LAST;
 
          /* Look for unconditional MOVs from an immediate with a partial
           * writemask.  Skip type-conversion MOVs other than integer 0,