File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/swift-inspect/Sources/swift-inspect/Operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ internal struct DumpGenericMetadata: ParsableCommand {
41
41
let allocations : [ swift_metadata_allocation_t ] =
42
42
try process. context. allocations. sorted ( )
43
43
44
- let generics : [ Metadata ] = allocations. compactMap { allocation in
44
+ let generics : [ Metadata ] = allocations. compactMap { allocation -> Metadata ? in
45
45
let pointer = swift_reflection_allocationMetadataPointer ( process. context, allocation)
46
46
if pointer == 0 { return nil }
47
47
48
48
return Metadata ( ptr: pointer,
49
- allocation: allocations. last ( where: { pointer >= $0. ptr && pointer < $0. ptr + UInt64 ( $0. size) } ) ,
49
+ allocation: allocations. last ( where: { pointer >= $0. ptr && pointer < $0. ptr + swift_reflection_ptr_t ( $0. size) } ) ,
50
50
name: ( process. context. name ( type: pointer, mangled: genericMetadataOptions. mangled) ?? " <unknown> " ) ,
51
51
isArrayOfClass: process. context. isArrayOfClass ( pointer) )
52
52
}
You can’t perform that action at this time.
0 commit comments