Skip to content

Commit b8562fc

Browse files
Fix direct cast at wrong abstraction layer.
1 parent 82306cb commit b8562fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/pcg/include/pcg/file_format/v1/graphs/v1_labelled_kwarg_dataflow_graph.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ std::pair<LabelledKwargDataflowGraphView<NodeLabel, OutputLabel, SlotName>,
6363

6464
std::unordered_map<KwargDataflowOutput<SlotName>, OutputLabel> value_labels =
6565
map_keys(v1.output_labels, [&](V1GraphOutput<SlotName> const &o) {
66-
Node n = Node{o.node.size_t_from_nonnegative_int()};
67-
return KwargDataflowOutput<SlotName>{n, o.slot_name};
66+
return KwargDataflowOutput<SlotName>{node_map.at(o.node), o.slot_name};
6867
});
6968

7069
return std::pair{kwarg_dataflow_graph_view_with_labelling(

0 commit comments

Comments
 (0)