* genmatch.c (expr::gen_transform): For conditions, guess the type
from the second operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224220
138bc75d-0d04-0410-961f-
82ee72b054a4
+2015-06-08 Marc Glisse <marc.glisse@inria.fr>
+
+ * genmatch.c (expr::gen_transform): For conditions, guess the type
+ from the second operand.
+
2015-06-08 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/66442
sprintf (optype, "boolean_type_node");
type = optype;
}
+ else if (*operation == COND_EXPR
+ || *operation == VEC_COND_EXPR)
+ {
+ /* Conditions are of the same type as their first alternative. */
+ sprintf (optype, "TREE_TYPE (ops%d[1])", depth);
+ type = optype;
+ }
else
{
/* Other operations are of the same type as their first operand. */