summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-10-16 16:03:59 +0200
committerMatthias Braun <matze@braunis.de>2014-10-18 20:42:47 +0200
commit89434d4d18165ef05664af1eab6570a17c40c7dc (patch)
tree746b664a9afab8f8194fd72d1e88852f78b45f4c /ir/be/beirg.c
parent91aae509bd4ca6eb992f30690196e079e19c31ee (diff)
liveness struct is always available
Diffstat (limited to 'ir/be/beirg.c')
-rw-r--r--ir/be/beirg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ir/be/beirg.c b/ir/be/beirg.c
index 98f819d..c781478 100644
--- a/ir/be/beirg.c
+++ b/ir/be/beirg.c
@@ -41,11 +41,8 @@ void be_assure_live_chk(ir_graph *irg)
void be_free_birg(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
-
- if (birg->lv != NULL) {
- be_liveness_free(birg->lv);
- birg->lv = NULL;
- }
+ be_liveness_free(birg->lv);
+ birg->lv = NULL;
obstack_free(&birg->obst, NULL);
irg->be_data = NULL;