Address nits from #1325

This commit is contained in:
Benjamin Bouvier
2020-01-22 17:25:52 +01:00
parent cc50e65f31
commit 3125431ece
3 changed files with 28 additions and 30 deletions

View File

@@ -194,8 +194,10 @@ fn perform_repairs(pos: &mut FuncCursor, cfg: &ControlFlowGraph, mut repairs: Ve
let inst_ebb = pos.func.layout.inst_ebb(inst).expect("inst in ebb");
// Insert split values prior to the terminal branch group.
let dfg = &pos.func.dfg;
let canonical = pos.func.layout.canonical_branch_inst(dfg, inst_ebb);
let canonical = pos
.func
.layout
.canonical_branch_inst(&pos.func.dfg, inst_ebb);
if let Some(first_branch) = canonical {
pos.goto_inst(first_branch);
}