From d0c4eaee09c6cbf8b4fdf6aaaf5387ac49c60d5f Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 19 Dec 2017 10:54:20 +0000 Subject: [PATCH] gimplify.c (gimplify_expr): Use error_operand_p. 2017-12-19 Paolo Carlini * gimplify.c (gimplify_expr): Use error_operand_p. From-SVN: r255816 --- gcc/ChangeLog | 4 ++++ gcc/gimplify.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79c3d593611..75c9a222f9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-12-19 Paolo Carlini + + * gimplify.c (gimplify_expr): Use error_operand_p. + 2017-12-19 Sebastian Huber PR target/83387 diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 8e1d400f303..3f2aa1e395f 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -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; -- 2.30.2