remove lots of unnecessary and dangerous current_ir_graph usages
[libfirm] / ir / ana / irextbb.c
index 6e2fbc6..34fd81c 100644 (file)
@@ -38,7 +38,7 @@
 /**
  * Environment for extbb construction.
  */
-typedef struct _env {
+typedef struct env {
        struct obstack *obst;   /**< the obstack where allocations took place */
        ir_extblk *head;        /**< head of the list of all extended blocks */
        ir_node *start_block;   /**< the start block of the current graph */
@@ -180,7 +180,7 @@ static void post_walk_calc_extbb(ir_node *block, void *ctx)
                /* replace all sentinels by the extbb info */
                prev = block;
                list = NULL;
-               while (1) {
+               for (;;) {
                        if (get_Block_extbb(prev) != sentinel)
                                break;
                        set_irn_link(prev, list);