aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2005-03-12 20:53:19 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-03-12 20:53:19 +0000
commit7d3bf067e90674708a69c8b838b4ad7c2caf98c7 (patch)
treee415a5bfe6d95178765f883b85a58a47d393ec72 /gcc/tree-ssa-operands.c
parentf39b4c073a4d6e7eef4e60c06b9e600977be4f04 (diff)
downloadgcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.zip
gcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.tar.gz
gcc-7d3bf067e90674708a69c8b838b4ad7c2caf98c7.tar.bz2
tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
* tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node. * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it. * tree-ssa-operands.c (get_expr_operands): Likewise. (get_expr_operands): Likewise for ERROR_MARK. From-SVN: r96351
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index de5150e..47b4f1b 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -998,10 +998,6 @@ get_stmt_operands (tree stmt)
_DECL. This indicates a bug in the gimplifier. */
gcc_assert (!SSA_VAR_P (stmt));
- /* Ignore error statements. */
- if (TREE_CODE (stmt) == ERROR_MARK)
- return;
-
ann = get_stmt_ann (stmt);
/* If the statement has not been modified, the operands are still valid. */
@@ -1037,7 +1033,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags)
tree expr = *expr_p;
stmt_ann_t s_ann = stmt_ann (stmt);
- if (expr == NULL || expr == error_mark_node)
+ if (expr == NULL)
return;
code = TREE_CODE (expr);