Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Nov 26, 2024
1 parent c34bfe3 commit 77034dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dace/sdfg/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ def add_node(self, node):
if not isinstance(node, nd.Node):
raise TypeError("Expected Node, got " + type(node).__name__ + " (" + str(node) + ")")
# Correct nested SDFG's parent attributes
if isinstance(node, nd.NestedSDFG) and node.sdfg:
if isinstance(node, nd.NestedSDFG) and node.sdfg is not None:
node.sdfg.parent = self
node.sdfg.parent_sdfg = self.sdfg
node.sdfg.parent_nsdfg_node = node
Expand Down

0 comments on commit 77034dc

Please sign in to comment.