Skip to content

Commit

Permalink
add stub implementation for control_repeat/control_repeat_until
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferfish101007 committed Aug 22, 2023
1 parent d0acbaf commit 438c831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ impl IrBlockVec for Vec<IrBlock> {
}
vec![IrOpcode::hq_goto_if { step: Some(step_from_top_block(substack_id, new_nexts.clone(), blocks, Rc::clone(&context))), does_yield: false, }, IrOpcode::hq_goto { step: Some(step_from_top_block(substack2_id, new_nexts.clone(), blocks, Rc::clone(&context))), does_yield: false, }]
}
BlockOpcode::control_repeat => vec![IrOpcode::hq_drop(1)],
BlockOpcode::control_repeat_until => vec![IrOpcode::hq_drop(1)],
_ => todo!(),
}).into_iter().map(IrBlock::from).collect());
}
Expand Down

0 comments on commit 438c831

Please sign in to comment.