From: Paolo Carlini Date: Tue, 19 Dec 2017 10:54:20 +0000 (+0000) Subject: gimplify.c (gimplify_expr): Use error_operand_p. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0c4eaee09c6cbf8b4fdf6aaaf5387ac49c60d5f;p=gcc.git gimplify.c (gimplify_expr): Use error_operand_p. 2017-12-19 Paolo Carlini * gimplify.c (gimplify_expr): Use error_operand_p. From-SVN: r255816 --- 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;