summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 17:11:25 +0000
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-26 17:11:25 +0000
commit291939ae90bf0ae7eb83a350b529deba5e9c340d (patch)
tree95707b8715877c2f58a6613a477b7c3e17688f67 /gcc/tree-cfg.c
parentb0551d9ce2622f72dff868f0c5dd1d414905fc98 (diff)
downloadgcc-291939ae90bf0ae7eb83a350b529deba5e9c340d.tar.gz
2005-04-26 Andrew MacLeod <amacleod@redhat.com>
* tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98778 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 93714d7c8da..c6494cc3d73 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3011,6 +3011,7 @@ bsi_replace (const block_stmt_iterator *bsi, tree stmt, bool preserve_eh_info)
add_stmt_to_eh_region (stmt, eh_region);
}
+ delink_stmt_imm_use (orig_stmt);
*bsi_stmt_ptr (*bsi) = stmt;
mark_stmt_modified (stmt);
update_modified_stmts (stmt);