Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Sep 18, 2023
1 parent 8086bb1 commit ffa60dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dace/codegen/targets/framecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def free_symbols(self, obj: Any):
if k in self.fsyms:
return self.fsyms[k]
if hasattr(obj, 'used_symbols'):
result = obj.used_symbols(all_symbols=False)[0]
intermediate = obj.used_symbols(all_symbols=False)
result = intermediate[0] if type(intermediate) is tuple else intermediate
else:
result = obj.free_symbols
self.fsyms[k] = result
Expand Down

0 comments on commit ffa60dc

Please sign in to comment.