gcc/cp/ChangeLog:
PR c++/36408
* semantics.c (empty_expr_stmt_p): Handle void_zero_node and fix
bad indentation.
* pt.c (tsubst_copy_and_build): Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154742
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-11-29 Dodji Seketeli <dodji@redhat.com>
+
+ PR c++/36408
+ * semantics.c (empty_expr_stmt_p): Handle void_zero_node and fix
+ bad indentation.
+ * pt.c (tsubst_copy_and_build): Fix typo.
+
2009-11-29 Jan Hubicka <jh@suse.cz>
* optimize.c (maybe_clone_body): Emit thunks associated to alias.
/* If the resulting list of expression statement is empty,
fold it further into void_zero_node. */
- if (empty_expr_stmt_p (cur_stmt_expr))
- cur_stmt_expr = void_zero_node;
+ if (empty_expr_stmt_p (stmt_expr))
+ stmt_expr = void_zero_node;
return stmt_expr;
}
{
tree body = NULL_TREE;
+ if (expr_stmt == void_zero_node)
+ return true;
+
if (expr_stmt)
{
if (TREE_CODE (expr_stmt) == EXPR_STMT)
body = expr_stmt;
}
- if (body)
- {
- if (TREE_CODE (body) == STATEMENT_LIST)
- return tsi_end_p (tsi_start (body));
- else
- return empty_expr_stmt_p (body);
- }
+ if (body)
+ {
+ if (TREE_CODE (body) == STATEMENT_LIST)
+ return tsi_end_p (tsi_start (body));
+ else
+ return empty_expr_stmt_p (body);
+ }
return false;
}