Commit 76a2bcdc by Paolo Carlini

gimplify.c (gimplify_return_expr): Remove dead error_mark_node check.

2017-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

	* gimplify.c (gimplify_return_expr): Remove dead error_mark_node check.

From-SVN: r255900
parent c8c6d7ef
2017-12-20 Paolo Carlini <paolo.carlini@oracle.com>
* gimplify.c (gimplify_return_expr): Remove dead error_mark_node check.
2017-12-20 Martin Sebor <msebor@redhat.com> 2017-12-20 Martin Sebor <msebor@redhat.com>
PR testsuite/83131 PR testsuite/83131
* builtins.c (expand_builtin_strlen): Use get_callee_fndecl. * builtins.c (expand_builtin_strlen): Use get_callee_fndecl.
(expand_builtin_strcmp): Call maybe_warn_nonstring_arg. (expand_builtin_strcmp): Call maybe_warn_nonstring_arg.
(expand_builtin_strncmp): Same. (expand_builtin_strncmp): Same.
2017-12-20 Alexandre Oliva <aoliva@redhat.com> 2017-12-20 Alexandre Oliva <aoliva@redhat.com>
...@@ -1500,8 +1500,7 @@ gimplify_return_expr (tree stmt, gimple_seq *pre_p) ...@@ -1500,8 +1500,7 @@ gimplify_return_expr (tree stmt, gimple_seq *pre_p)
return GS_ERROR; return GS_ERROR;
if (!ret_expr if (!ret_expr
|| TREE_CODE (ret_expr) == RESULT_DECL || TREE_CODE (ret_expr) == RESULT_DECL)
|| ret_expr == error_mark_node)
{ {
maybe_add_early_return_predict_stmt (pre_p); maybe_add_early_return_predict_stmt (pre_p);
greturn *ret = gimple_build_return (ret_expr); greturn *ret = gimple_build_return (ret_expr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment