workaround firm problems when current_ir_graph is not set (set_irn_n and maybe other...
authorMatthias Braun <matze@braunis.de>
Thu, 26 Jul 2007 07:43:09 +0000 (07:43 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 26 Jul 2007 07:43:09 +0000 (07:43 +0000)
[r15357]

ir/opt/tailrec.c

index b3050a9..ea75333 100644 (file)
@@ -413,6 +413,8 @@ void opt_tail_recursion(void) {
        for (i = get_irp_n_irgs() - 1; i >= 0; --i) {
                irg = get_irp_irg(i);
 
+               current_ir_graph = irg;
+
                if (opt_tail_rec_irg(irg))
                        ++n_opt_applications;
        }