From f164b24b962ffc75287122e131ecbbe1cbb8950b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 24 Jan 2011 23:30:57 +0000 Subject: [PATCH] Fixed broken refactoring of r28264. [r28270] --- ir/opt/ircgopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/opt/ircgopt.c b/ir/opt/ircgopt.c index d4a20d24c..ef4baf275 100644 --- a/ir/opt/ircgopt.c +++ b/ir/opt/ircgopt.c @@ -81,7 +81,7 @@ void gc_irgs(size_t n_keep, ir_entity ** keep_arr) size_t idx; for (idx = 0; idx < n_keep; ++idx) { - marked[i] = keep_arr[idx]; + marked[idx] = keep_arr[idx]; set_entity_link(marked[idx], MARK); DB((dbg, LEVEL_1, " method %+F kept alive.\n", marked[idx])); } -- 2.20.1