diff mbox

Fix PR bootstrap/51112

Message ID CAKSNEw5huE4J9NvReqCTO0bnyum8NXy6BF+aRLYnOhJUwB1YLA@mail.gmail.com
State New
Headers show

Commit Message

Ira Rosen Nov. 14, 2011, 6:41 a.m. UTC
Hi,

This patch fixes a maybe-uninitialized error.

Bootstrapped and tested on powerpc64-suse-linux.
Committed.

Ira

ChangeLog:

        PR bootstrap/51112
        * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
diff mbox

Patch

Index: tree-vect-stmts.c
===================================================================
--- tree-vect-stmts.c   (revision 181345)
+++ tree-vect-stmts.c   (working copy)
@@ -4968,7 +4968,7 @@  vectorizable_condition (gimple stmt, gimple_stmt_i
   tree cond_expr, then_clause, else_clause;
   stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
   tree vectype = STMT_VINFO_VECTYPE (stmt_info);
-  tree comp_vectype;
+  tree comp_vectype = NULL_TREE;
   tree vec_cond_lhs = NULL_TREE, vec_cond_rhs = NULL_TREE;
   tree vec_then_clause = NULL_TREE, vec_else_clause = NULL_TREE;
   tree vec_compare, vec_cond_expr;