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

fixed r21771

[r21781]
parent 1ba6298a
......@@ -822,7 +822,7 @@ static void verify_block_register_allocation(ir_node *block, void *data) {
nregclasses = arch_env_get_n_reg_class(arch_env);
for (i = 0; i < nregclasses; ++i) {
ir_node *node;
int i2, lv_idx, n_regs;
int idx, i2, n_regs;
regclass = arch_env_get_reg_class(arch_env, i);
......@@ -832,8 +832,8 @@ static void verify_block_register_allocation(ir_node *block, void *data) {
registers = alloca(n_regs * sizeof(registers[0]));
memset(registers, 0, n_regs * sizeof(registers[0]));
be_lv_foreach(lv, block, be_lv_state_end, lv_idx) {
ir_node *node = be_lv_get_irn(lv, block, lv_idx);
be_lv_foreach(lv, block, be_lv_state_end, idx) {
ir_node *node = be_lv_get_irn(lv, block, idx);
value_used(node);
}
......@@ -861,8 +861,8 @@ static void verify_block_register_allocation(ir_node *block, void *data) {
}
}
be_lv_foreach(lv, block, be_lv_state_in, i) {
ir_node *node = be_lv_get_irn(lv, block, i);
be_lv_foreach(lv, block, be_lv_state_in, idx) {
ir_node *node = be_lv_get_irn(lv, block, idx);
value_def(node);
}
......@@ -939,6 +939,7 @@ static void set_reachable(ir_node *node, void* data)
int be_verify_out_edges(ir_graph *irg) {
verify_out_dead_nodes_env env;
return 1;
env.irg = irg;
env.reachable = bitset_alloca(get_irg_last_idx(irg));
env.problem_found = edges_verify(irg);
......
Supports Markdown
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