Add assertions if set_cur_block() is tried for a block on a wrong irg.
[libfirm] / ir / opt / opt_polymorphy.c
index cb0b9ee..773b89d 100644 (file)
@@ -81,7 +81,7 @@ static ir_type *get_dynamic_type(ir_node *ptr)
 
        /* skip Cast and Confirm nodes */
        for (;;) {
-               ir_opcode code = get_irn_opcode(ptr);
+               unsigned code = get_irn_opcode(ptr);
 
                switch (code) {
                case iro_Cast: