Commit 7026b8df by Marc Glisse Committed by Marc Glisse

genmatch.c (expr::gen_transform): For conditions, guess the type from the second operand.

2015-06-08  Marc Glisse  <marc.glisse@inria.fr>

	* genmatch.c (expr::gen_transform): For conditions, guess the type
	from the second operand.

From-SVN: r224220
parent 1b7f61eb
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
......
......@@ -1709,6 +1709,13 @@ expr::gen_transform (FILE *f, const char *dest, bool gimple, int depth,
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment