refactor(mir): phase260 p0 edge-args plumbing (strangler) + ssot api + docs
This commit is contained in:
@ -335,7 +335,10 @@ impl MirFunction {
|
||||
) -> Result<(), String> {
|
||||
if let Some(bb) = self.get_block_mut(bb_id) {
|
||||
if !bb.is_terminated() {
|
||||
bb.set_terminator(MirInstruction::Jump { target });
|
||||
bb.set_terminator(MirInstruction::Jump {
|
||||
target,
|
||||
edge_args: None,
|
||||
});
|
||||
}
|
||||
Ok(())
|
||||
} else {
|
||||
@ -357,6 +360,8 @@ impl MirFunction {
|
||||
condition,
|
||||
then_bb,
|
||||
else_bb,
|
||||
then_edge_args: None,
|
||||
else_edge_args: None,
|
||||
});
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user