Skip to content

Commit

Permalink
#2854 ensure lowercase used for component name when getting type
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Jan 20, 2025
1 parent ef85530 commit c644789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/psyclone/psyir/nodes/structure_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ def _get_cursor_shape(cursor, cursor_type):
if not isinstance(cursor_type, (UnresolvedType, UnsupportedType)):
# Once we've hit an Unresolved/UnsupportedType the cursor_type
# will remain set to that as we can't do any better.
cursor_type = cursor_type.components[cursor.name].datatype
cursor_type = cursor_type.components[
cursor.name.lower()].datatype
try:
cursor_shape = _get_cursor_shape(cursor, cursor_type)
except NotImplementedError:
Expand Down

0 comments on commit c644789

Please sign in to comment.