From 280c4d16974000891b33915c811143d24d82bec7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 9 Feb 2007 17:48:53 +0000 Subject: [PATCH] fixed DEL_ARR_F --- ir/be/bemain.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 6f96823c5..42dd4fe94 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -419,10 +419,13 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) /* First: initialize all birgs */ for(i = 0; i < num_birgs; ++i) { ir_graph *irg = backend_irg_list ? backend_irg_list[i] : get_irp_irg(i); - initialize_birg(&birgs[i], irg, &env); } - DEL_ARR_F(irg_list); + /* TODO: DEL_ARR_F(irg_list) will break, if list was modified by Backend ?!?! */ + if (backend_irg_list) + DEL_ARR_F(backend_irg_list); + else + DEL_ARR_F(irg_list); /* Get the filename for the profiling data. -- 2.20.1