diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-28 14:29:59 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:12 -0700 |
| commit | ee2e63eb742d7afd2ba8021863f18b89792d5078 (patch) | |
| tree | 9e3da8a71f6bfc0be8fe855a0f4aa8e271f75748 /flow.c | |
| parent | 0923bd7ded0b37aaa9eb64cb0941db9837634495 (diff) | |
| download | sparse-dev-ee2e63eb742d7afd2ba8021863f18b89792d5078.tar.gz | |
Fix entrypoint branch rewriting..
Diffstat (limited to 'flow.c')
| -rw-r--r-- | flow.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -852,7 +852,9 @@ void pack_basic_blocks(struct entrypoint *ep) case OP_BR: { struct basic_block *replace; replace = rewrite_branch_bb(bb, first); - if (replace && bb != ep->entry) { + if (replace) { + if (bb == ep->entry) + ep->entry = replace; kill_bb(bb); goto no_merge; } |
