We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65361b commit b6445e6Copy full SHA for b6445e6
kmir/src/kmir/linker.py
@@ -80,8 +80,8 @@ def apply_offset_typeInfo(typeinfo: dict, offset: int) -> dict:
80
typeinfo['UnionType']['adt_def'] = typeinfo['UnionType']['adt_def'] + offset
81
elif 'ArrayType' in typeinfo:
82
typeinfo['ArrayType']['elem_type'] = typeinfo['ArrayType']['elem_type'] + offset
83
- if 'size' in typeinfo:
84
- apply_offset_tyconst(typeinfo['size'], offset)
+ if 'size' in typeinfo['ArrayType'] and typeinfo['ArrayType']['size'] is not None:
+ apply_offset_tyconst(typeinfo['ArrayType']['size']['kind'], offset)
85
elif 'PtrType' in typeinfo:
86
typeinfo['PtrType']['pointee_type'] = typeinfo['PtrType']['pointee_type'] + offset
87
elif 'RefType' in typeinfo:
0 commit comments