gimplify.c (gimplify_expr): Use error_operand_p.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 19 Dec 2017 10:54:20 +0000 (10:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 19 Dec 2017 10:54:20 +0000 (10:54 +0000)
2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

* gimplify.c (gimplify_expr): Use error_operand_p.

From-SVN: r255816

gcc/ChangeLog
gcc/gimplify.c

index 79c3d5936119b571c449791c779fcb08bee7e6ad..75c9a222f9f72e6901a16845db02ded74b1ebfb2 100644 (file)
@@ -1,3 +1,7 @@
+2017-12-19  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * gimplify.c (gimplify_expr): Use error_operand_p.
+
 2017-12-19  Sebastian Huber  <sebastian.huber@embedded-brains.de>
 
        PR target/83387
index 8e1d400f303e35616252ca8c5f8c2244f34c0b7d..3f2aa1e395f222f1c9a1439b11d2e700c9aeea96 100644 (file)
@@ -11334,9 +11334,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
       save_expr = *expr_p;
 
       /* Die, die, die, my darling.  */
-      if (save_expr == error_mark_node
-         || (TREE_TYPE (save_expr)
-             && TREE_TYPE (save_expr) == error_mark_node))
+      if (error_operand_p (save_expr))
        {
          ret = GS_ERROR;
          break;