Add assertions if set_cur_block() is tried for a block on a wrong irg.