decl.c (java_add_stmt): Give the statement list a type.
authorAndrew Haley <aph@redhat.com>
Tue, 22 Aug 2006 15:00:37 +0000 (15:00 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 22 Aug 2006 15:00:37 +0000 (15:00 +0000)
2006-08-22  Andrew Haley  <aph@redhat.com>

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

From-SVN: r116324

gcc/java/ChangeLog
gcc/java/decl.c

index 81970f5077f36fb6aa4671d08ce2542a823bbe8f..c9e11aeda43c5b0fbec19ad48df7955c9c292203 100644 (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>
 
index 8497fbf787bc903dcefa0e0a1e01b011e263c9f7..4fcc6c06ee3ddecd31ca2b164b47c9f45e943074 100644 (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;
 }