Commit 38b52b2f by Richard Biener Committed by Richard Biener

genmatch.c (expr::gen_transform): Clarify error message and display location.

2015-07-22  Richard Biener  <rguenther@suse.de>

	* genmatch.c (expr::gen_transform): Clarify error message
	and display location.

From-SVN: r226068
parent 0889c52f
2015-07-22 Richard Biener <rguenther@suse.de>
* genmatch.c (expr::gen_transform): Clarify error message
and display location.
2015-07-22 Richard Biener <rguenther@suse.de>
* genmatch.c (struct operand): Add location member.
(predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
constructors.
......
......@@ -1877,7 +1877,7 @@ expr::gen_transform (FILE *f, int indent, const char *dest, bool gimple,
type = optype;
}
if (!type)
fatal ("two conversions in a row");
fatal_at (location, "cannot determine type of operand");
fprintf_indent (f, indent, "{\n");
indent += 2;
......
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