Commit 239c95d3 by Doug Evans

fold-const.c (make_range): Handle NULL operand 0 (like in BIND_EXPRs).

	* fold-const.c (make_range): Handle NULL operand 0
	(like in BIND_EXPRs).

From-SVN: r12957
parent fb19c456
......@@ -2624,7 +2624,7 @@ make_range (exp, pin_p, plow, phigh)
{
code = TREE_CODE (exp);
arg0 = TREE_OPERAND (exp, 0), arg1 = TREE_OPERAND (exp, 1);
if (tree_code_length[(int) code] > 0)
if (arg0 != 0 && tree_code_length[(int) code] > 0)
type = TREE_TYPE (arg0);
switch (code)
......
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