decl.c (java_add_stmt): Give the statement list a type.

2006-08-22  Andrew Haley  <aph@redhat.com>

        * decl.c (java_add_stmt): Give the statement list a type.

From-SVN: r116324
This commit is contained in:
Andrew Haley 2006-08-22 15:00:37 +00:00 committed by Andrew Haley
parent ca8587095e
commit 182ee26047
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-08-22 Andrew Haley <aph@redhat.com>
* decl.c (java_add_stmt): Give the statement list a type.
2006-08-16 Jakub Jelinek <jakub@redhat.com>
Bryce McKinlay <bryce@mckinlay.net.nz>

View File

@ -2188,6 +2188,7 @@ java_add_stmt (tree new_stmt)
i = tsi_last (stmts);
tsi_link_after (&i, new_stmt, TSI_CONTINUE_LINKING);
TREE_TYPE (stmts) = void_type_node;
return current_binding_level->stmts = stmts;
}