aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-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",