From: Andrew Haley Date: Tue, 22 Aug 2006 15:00:37 +0000 (+0000) Subject: decl.c (java_add_stmt): Give the statement list a type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=182ee260475bc89a3511c651ea29e99ad61e1884;p=gcc.git decl.c (java_add_stmt): Give the statement list a type. 2006-08-22 Andrew Haley * decl.c (java_add_stmt): Give the statement list a type. From-SVN: r116324 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 81970f5077f..c9e11aeda43 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2006-08-22 Andrew Haley + + * decl.c (java_add_stmt): Give the statement list a type. + 2006-08-16 Jakub Jelinek Bryce McKinlay diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 8497fbf787b..4fcc6c06ee3 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -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; }