Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat-Lafon committed Jul 26, 2024
1 parent f3fc3a6 commit 6cf4d48
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions brilirs/src/basic_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,11 @@ impl BBFunction {
}
curr_block.label = Some(label);
}
bril_rs::Code::Instruction(bril_rs::Instruction::Effect {
op,
args,
funcs,
labels,
pos,
}) if op == bril_rs::EffectOps::Jump
|| op == bril_rs::EffectOps::Branch
|| op == bril_rs::EffectOps::Return =>
bril_rs::Code::Instruction(i @ bril_rs::Instruction::Effect { op, .. })
if op == bril_rs::EffectOps::Jump
|| op == bril_rs::EffectOps::Branch
|| op == bril_rs::EffectOps::Return =>
{
let i = bril_rs::Instruction::Effect {
op,
args,
funcs,
labels,
pos,
};
curr_block.numified_instrs.push(NumifiedInstruction::new(
&i,
&mut num_of_vars,
Expand Down

0 comments on commit 6cf4d48

Please sign in to comment.