changes
This commit is contained in:
@@ -258,13 +258,15 @@ impl BlockLoweringOrder {
|
|||||||
match lb {
|
match lb {
|
||||||
LoweredBlock::Orig { block, cold, .. } => {
|
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) } ) {
|
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 => {
|
None => {
|
||||||
panic!("Trying to hashlookup {:?} in HashMap: {:?}", lb, lb_to_bindex);
|
panic!("Trying to hashlookup {:?} in HashMap: {:?}", lb, lb_to_bindex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_ => panic!("Invalid block type in block_succs")
|
LoweredBlock::CriticalEdge { .. } => {
|
||||||
|
lb_to_bindex[&lb]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user