aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-02-11 11:04:31 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-02-11 11:04:31 -0800
commit258835c78bfbb74c7cf9f0cf98e5939dec3fdb26 (patch)
tree07df2b6c6082ca3eb9f279bb333847f247f1a7ab /gcc/tree.c
parent48dbafe4a98239d93121fdc79e0af05b95b3f682 (diff)
downloadgcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.zip
gcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.tar.gz
gcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.tar.bz2
* tree.c (build1): Check for null operand in last change.
From-SVN: r39587
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index b45dc19..4ef1441 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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;
}