]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parse.y (maybe_yank_clinit): Don't crash if bbody is NULL.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Mar 2005 17:55:57 +0000 (17:55 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Mar 2005 17:55:57 +0000 (17:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97264 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/parse.y

index 73233aab9a8e13244fb3d119bf90a53e903ede5f..b46ec5be8f904b1560bcd753baceafc2a2b957a2 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-30  Ian Lance Taylor  <ian@airs.com>
+
+       * parse.y (maybe_yank_clinit): Don't crash if bbody is NULL.
+
 2005-03-30  Tom Tromey  <tromey@redhat.com>
 
        * jcf-dump.c (HANDLE_INNERCLASSES_ATTRIBUTE): Handle cases where
index 9569f95d0855268585ecbb8603957f29a32889b8..7410224320002aa5dd22ccb63d340d19ffde3421 100644 (file)
@@ -8091,7 +8091,7 @@ maybe_yank_clinit (tree mdecl)
 
   /* Now we analyze the method body and look for something that
      isn't a MODIFY_EXPR */
-  if (!IS_EMPTY_STMT (bbody) && analyze_clinit_body (type, bbody))
+  if (bbody && !IS_EMPTY_STMT (bbody) && analyze_clinit_body (type, bbody))
     return 0;
 
   /* Get rid of <clinit> in the class' list of methods */