Skip to content

Commit b5a7b38

Browse files
committed
fix: make check
1 parent 2fbb3b1 commit b5a7b38

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

kmir/src/kmir/decoding.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ def decode_alloc_or_unable(alloc_info: AllocInfo, types: Mapping[Ty, TypeMetadat
7373
return _decode_memory_alloc_or_unable(data=data, ptrs=ptrs, ty=ty, types=types)
7474
case AllocInfo(
7575
ty=_,
76-
global_alloc=Static(
77-
alloc_id=_,
78-
),
76+
# `Static` currently only carries `def_id`; we ignore it here.
77+
global_alloc=Static(),
7978
):
8079
# Static global alloc does not carry raw bytes here; leave as unable-to-decode placeholder
8180
return UnableToDecodeValue('Static global allocation not decoded')
@@ -89,9 +88,8 @@ def decode_alloc_or_unable(alloc_info: AllocInfo, types: Mapping[Ty, TypeMetadat
8988
return UnableToDecodeValue('Function global allocation not decoded')
9089
case AllocInfo(
9190
ty=_,
92-
global_alloc=VTable(
93-
data=_,
94-
),
91+
# `VTable` carries `ty` and optional `binder`; we ignore both here.
92+
global_alloc=VTable(),
9593
):
9694
# VTable alloc currently not decoded to a runtime value
9795
return UnableToDecodeValue('VTable global allocation not decoded')

0 commit comments

Comments
 (0)