diff options
author | Doug Evans <dje@gnu.org> | 1996-10-12 04:06:11 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1996-10-12 04:06:11 +0000 |
commit | 239c95d346c5a28c3af07c0064e52c6526a57cab (patch) | |
tree | b6f77964b4b200f82c8315a975c95fff74ccee5a /gcc/fold-const.c | |
parent | fb19c4566d361b7be417a40bdff4aa5682aa97fa (diff) | |
download | gcc-239c95d346c5a28c3af07c0064e52c6526a57cab.zip gcc-239c95d346c5a28c3af07c0064e52c6526a57cab.tar.gz gcc-239c95d346c5a28c3af07c0064e52c6526a57cab.tar.bz2 |
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 28f6456..d1c25c3 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) |