Skip to content

Commit

Permalink
drive-by: appease typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Dec 18, 2024
1 parent d696034 commit f61ef78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hugr-passes/src/monomorphize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,20 @@ fn instantiate(
// 'ext' edges by copying every node before recursing on any of them,
// 'dom' edges would *also* require recursing in dominator-tree preorder.
for (&old_ch, &new_ch) in node_map.iter() {
for inport in h.node_inputs(old_ch).collect::<Vec<_>>() {
for in_port in h.node_inputs(old_ch).collect::<Vec<_>>() {
// Edges from monomorphized functions to their calls already added during mono_scan()
// as these depend not just on the original FuncDefn but also the TypeArgs
if h.linked_outputs(new_ch, inport).next().is_some() {
if h.linked_outputs(new_ch, in_port).next().is_some() {
continue;
};
let srcs = h.linked_outputs(old_ch, inport).collect::<Vec<_>>();
let srcs = h.linked_outputs(old_ch, in_port).collect::<Vec<_>>();
for (src, outport) in srcs {
// Sources could be a mixture of within this polymorphic FuncDefn, and Static edges from outside
h.connect(
node_map.get(&src).copied().unwrap_or(src),
outport,
new_ch,
inport,
in_port,
);
}
}
Expand Down

0 comments on commit f61ef78

Please sign in to comment.