summaryrefslogtreecommitdiff
path: root/gcc/java/builtins.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 19:38:35 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 19:38:35 +0000
commitc664b5f8889feecc2adbfb731006f5bead44e1a9 (patch)
tree4c3a6b3f191c32b84b49a20f65333bb879517e7c /gcc/java/builtins.c
parente7f722c015c73a2b6f4566ae3c75085b74fe7fcd (diff)
downloadgcc-c664b5f8889feecc2adbfb731006f5bead44e1a9.tar.gz
2002-03-18 Alexandre Petit-Bianco <apbianco@redhat.com>
* builtins.c (define_builtin): Do nothing if `type' is null. Fixes PR java/5876. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50990 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r--gcc/java/builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c
index 7db228cf2c7..7af0435dda6 100644
--- a/gcc/java/builtins.c
+++ b/gcc/java/builtins.c
@@ -200,7 +200,7 @@ define_builtin (val, name, class, type, fallback_p)
{
tree decl;
- if (! name)
+ if (! name || ! type)
return;
if (strncmp (name, "__builtin_", strlen ("__builtin_")) != 0)