Commit dd69af4a authored by Michael Beck's avatar Michael Beck
Browse files

Ignore Id's that arise because we modify the graph before visiting it


parent 5bfb2955
......@@ -585,9 +585,16 @@ static void move_nodes_to_block(ir_node *jmp, ir_node *to_block)
static void find_cf_and_or_walker(ir_node *block, void *ctx)
int low_idx, up_idx;
int n_cfgpreds = get_Block_n_cfgpreds(block);
int n_cfgpreds;
bool_opt_env_t *env = ctx;
/* because we modify the graph in regions we might not visited yet,
* Id nodes might arise here. Ignore them.
if (is_Id(block))
n_cfgpreds = get_Block_n_cfgpreds(block);
if (n_cfgpreds < 2)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment