* tree.c (build1): Check for null operand in last change.

From-SVN: r39587
This commit is contained in:
Richard Henderson 2001-02-11 11:04:31 -08:00 committed by Richard Henderson
parent 48dbafe4a9
commit 258835c78b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-02-11 Richard Henderson <rth@redhat.com>
* tree.c (build1): Check for null operand in last change.
2001-02-11 Richard Henderson <rth@redhat.com>
* fold-const.c (split_tree): Don't assume a constant isn't splittable.

View File

@ -2482,7 +2482,7 @@ build1 (code, type, node)
break;
default:
if (TREE_CODE_CLASS (code) == '1' && TREE_CONSTANT (node))
if (TREE_CODE_CLASS (code) == '1' && node && TREE_CONSTANT (node))
TREE_CONSTANT (t) = 1;
break;
}