* parse.y (maybe_yank_clinit): Don't crash if bbody is NULL.

From-SVN: r97264
This commit is contained in:
Ian Lance Taylor 2005-03-30 17:55:57 +00:00 committed by Ian Lance Taylor
parent 2d47d84c92
commit 15f188a462
2 changed files with 5 additions and 1 deletions

View 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

View 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 */