* tree.c (build1): Check for null operand in last change.
authorRichard Henderson <rth@redhat.com>
Sun, 11 Feb 2001 19:04:31 +0000 (11:04 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 11 Feb 2001 19:04:31 +0000 (11:04 -0800)
From-SVN: r39587

gcc/ChangeLog
gcc/tree.c

index 69c063654e4513408c260a61bec1c2c49841f27c..9d5822a2bf4e7a94ae437954fd2b6ff32f2a51a4 100644 (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.
index b45dc19a8137b5717d4b9d27cc7527867591ff77..4ef1441041b0b87e7ec0e64f7a8f9d59ba1d6eab 100644 (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;
     }