Skip to content

Commit

Permalink
[refactor] Default to open extensions in branch of any_block_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
croyzor committed Oct 23, 2023
1 parent 8395129 commit 90265c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ impl<B: AsMut<Hugr> + AsRef<Hugr>> CFGBuilder<B> {
// TODO: Make extensions a parameter
self.hugr_mut().add_op_before(exit, op)
} else {
// TODO: Make extensions a parameter
self.hugr_mut().add_op_with_parent(parent, op)
self.hugr_mut()
.add_node_with_parent(parent, NodeType::open_extensions(op))
}?;

BlockBuilder::create(
Expand Down

0 comments on commit 90265c0

Please sign in to comment.