tree-vect-generic.c (expand_vector_condition): Avoid uninitialized variable warning.
authorIlya Enkovich <enkovich.gnu@gmail.com>
Fri, 23 Oct 2015 22:38:37 +0000 (22:38 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 23 Oct 2015 22:38:37 +0000 (22:38 +0000)
gcc/

* tree-vect-generic.c (expand_vector_condition): Avoid
uninitialized variable warning.

From-SVN: r229274

gcc/ChangeLog
gcc/tree-vect-generic.c

index 77fe67856fdc569eccc3b8f705053502212bb859..03e2b5c535e9a6c41e69f3ef5ef9040ad9463f2e 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
+
+       * tree-vect-generic.c (expand_vector_condition): Avoid
+       uninitialized variable warning.
+
 2015-10-23  Jeff Law  <law@redhat.com>
 
        * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
index 20053839d2b2a0b1c0fe61cbc6497fd99c17ff40..d1fc0ba0f5164db65910f7fbcbb422ee1ab78880 100644 (file)
@@ -844,7 +844,7 @@ expand_vector_condition (gimple_stmt_iterator *gsi)
   tree type = gimple_expr_type (stmt);
   tree a = gimple_assign_rhs1 (stmt);
   tree a1 = a;
-  tree a2;
+  tree a2 = NULL_TREE;
   bool a_is_comparison = false;
   tree b = gimple_assign_rhs2 (stmt);
   tree c = gimple_assign_rhs3 (stmt);