Add assertions for matches that used to use analyze_branch (#5733)

Following up from #5730, add debug assertions to ensure that new branch instructions don't slip through matches that used to use analyze_branch.
This commit is contained in:
Trevor Elliott
2023-02-07 14:51:18 -08:00
committed by GitHub
parent 317cc51337
commit 3343cf80e9
6 changed files with 6 additions and 6 deletions

View File

@@ -141,7 +141,7 @@ impl ControlFlowGraph {
self.add_edge(block, inst, *dest);
}
}
_ => {}
inst => debug_assert!(!inst.opcode().is_branch()),
}
}
}