Skip to content

Commit

Permalink
Generate node ID for controlled adjoint (#506)
Browse files Browse the repository at this point in the history
Fixes #505
  • Loading branch information
swernli authored Jul 27, 2023
1 parent 5c010e2 commit 6816c20
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 263 deletions.
2 changes: 1 addition & 1 deletion compiler/qsc_passes/src/spec_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl MutVisitor for SpecPlacePass<'_> {
SpecGen::Distribute
};
decl.ctl_adj = Some(SpecDecl {
id: NodeId::default(),
id: self.assigner.next_node(),
span: decl.span,
body: SpecBody::Gen(gen),
});
Expand Down
Loading

0 comments on commit 6816c20

Please sign in to comment.