This commit is contained in:
T0b1
2023-04-15 05:04:07 +02:00
parent afb8d61c87
commit 3f93c5f698

View File

@@ -258,13 +258,15 @@ impl BlockLoweringOrder {
match lb {
LoweredBlock::Orig { block, cold, .. } => {
match lb_to_bindex.get(&LoweredBlock::Orig { block: *block, cold: *cold, indirect_branch_target: indirect_branch_target_clif_blocks.contains(block) } ) {
Some(idx) => idx,
Some(idx) => *idx,
None => {
panic!("Trying to hashlookup {:?} in HashMap: {:?}", lb, lb_to_bindex);
}
}
},
_ => panic!("Invalid block type in block_succs")
LoweredBlock::CriticalEdge { .. } => {
lb_to_bindex[&lb]
}
}
}));