Skip to content

Commit

Permalink
Fix bug introduced through merge
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Dec 3, 2024
1 parent 3af9a70 commit d27ec31
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dace/sdfg/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2857,13 +2857,9 @@ def all_control_flow_regions(self, recursive=False, load_ext=False,
node.load_external(block)
yield from node.sdfg.all_control_flow_regions(recursive=recursive, load_ext=load_ext,
parent_first=parent_first)
elif isinstance(block, ControlFlowRegion):
elif isinstance(block, AbstractControlFlowRegion):
yield from block.all_control_flow_regions(recursive=recursive, load_ext=load_ext,
parent_first=parent_first)
elif isinstance(block, ConditionalBlock):
for _, branch in block.branches:
yield from branch.all_control_flow_regions(recursive=recursive, load_ext=load_ext,
parent_first=parent_first)
if not parent_first:
yield self

Expand Down

0 comments on commit d27ec31

Please sign in to comment.