gimplify.c (gimplify_return_expr): Remove dead error_mark_node check.
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Dec 2017 18:40:33 +0000 (18:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Dec 2017 18:40:33 +0000 (18:40 +0000)
2017-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r255900

gcc/ChangeLog
gcc/gimplify.c

index 2f23a2b88600911f631c0db7ea080180485d3413..617dba91892c17619b1dd4d20316e59668857e75 100644 (file)
@@ -1,8 +1,12 @@
+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>
 
        PR testsuite/83131
        * 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.
 
 2017-12-20  Alexandre Oliva <aoliva@redhat.com>
index 9da462569f635a902ff10b23d1b3bfebd7942359..947580759e3e8b5dcbe7a9b6f0c42a9fb4d657e1 100644 (file)
@@ -1500,8 +1500,7 @@ gimplify_return_expr (tree stmt, gimple_seq *pre_p)
     return GS_ERROR;
 
   if (!ret_expr
-      || TREE_CODE (ret_expr) == RESULT_DECL
-      || ret_expr == error_mark_node)
+      || TREE_CODE (ret_expr) == RESULT_DECL)
     {
       maybe_add_early_return_predict_stmt (pre_p);
       greturn *ret = gimple_build_return (ret_expr);