aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-12 18:22:39 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:23 -0700
commit100e19374a3a083bb1a56cd5afc132ac8f447cd5 (patch)
treefa1d6e32e48f5c3cf9048a090658fcef1d85eede
parentfe2fe8d3e8b615b1acebdeabaefc75cf698353b9 (diff)
downloadsparse-dev-100e19374a3a083bb1a56cd5afc132ac8f447cd5.tar.gz
Make sure we register bb usage when rewriting a branch.
-rw-r--r--linearize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linearize.c b/linearize.c
index 57383a8b..8bf7978c 100644
--- a/linearize.c
+++ b/linearize.c
@@ -1582,7 +1582,7 @@ static void rewrite_branch(struct basic_block *bb,
struct basic_block *old,
struct basic_block *new)
{
- *ptr = new;
+ use_bb(new, ptr);
add_bb(&new->parents, bb);
/*
* FIXME!!! We should probably also remove bb from "old->parents",