From 239c95d346c5a28c3af07c0064e52c6526a57cab Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 12 Oct 1996 04:06:11 +0000 Subject: [PATCH] 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 --- gcc/fold-const.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 28f645673f0..d1c25c3039a 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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) -- 2.30.2