summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-24 14:14:18 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-24 14:14:18 +0000
commita03a52b437d9e1b2d311f26aedd60465d025e1d6 (patch)
treec20a1313111ed5f986d8e19344092dc061ea09d4 /gcc/tree-ssa-ccp.c
parent58bf5219edd00f3fa401e2fe8a8048820a7ac96a (diff)
downloadgcc-a03a52b437d9e1b2d311f26aedd60465d025e1d6.tar.gz
2012-09-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54684 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts. * g++.dg/torture/pr54684.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index bf684749926..49a4c6fbe28 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -2355,6 +2355,7 @@ optimize_unreachable (gimple_stmt_iterator i)
gimple_cond_make_true (stmt);
else
gcc_unreachable ();
+ update_stmt (stmt);
}
else
{