Skip to content

Commit

Permalink
Expression: Add a defensive assert in the idenitity mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Nov 19, 2024
1 parent a98a9eb commit 43cff05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions loki/expression/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def map_variable_symbol(self, expr, *args, **kwargs):
new_type = expr.type
if recurse_to_declaration_attributes:
old_type = expr.type
assert expr.type is not None
kind = self.rec(old_type.kind, *args, **kwargs)

if expr.scope and expr.name == old_type.initial:
Expand Down

0 comments on commit 43cff05

Please sign in to comment.