diff mbox

[committed] Fix uninitialized variable warning

Message ID 20151023153228.GE23452@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Ilya Enkovich Oct. 23, 2015, 3:32 p.m. UTC
Hi,

This patch fixes uninitialized variable warning.  Applied to trunk.

Thanks,
Ilya
--
gcc/

2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>

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

Patch

diff --git a/gcc/tree-vect-generic.c b/gcc/tree-vect-generic.c
index 2005383..d1fc0ba 100644
--- a/gcc/tree-vect-generic.c
+++ b/gcc/tree-vect-generic.c
@@ -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);