* parse.y (maybe_yank_clinit): Don't crash if bbody is NULL.
From-SVN: r97264
This commit is contained in:
parent
2d47d84c92
commit
15f188a462
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user