diff --git a/src/builder/cfg.rs b/src/builder/cfg.rs index eb168082e..979906fb2 100644 --- a/src/builder/cfg.rs +++ b/src/builder/cfg.rs @@ -146,8 +146,8 @@ impl + AsRef> CFGBuilder { // 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(