Skip to content

Commit

Permalink
Added missing check for "None" state.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnick83 committed Jul 14, 2023
1 parent 6d4b8b0 commit 4ec4451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dace/transformation/interstate/sdfg_nesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def _check_cand(candidates, outer_edges):
continue

# Check w.r.t. loops
if len(nstate.ranges) > 0:
if nstate is not None and len(nstate.ranges) > 0:
# Re-annotate loop ranges, in case someone changed them
# TODO: Move out of here!
for ns in nsdfg.sdfg.states():
Expand Down

0 comments on commit 4ec4451

Please sign in to comment.