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 {
4141 let allocations : [ swift_metadata_allocation_t ] =
4242 try process. context. allocations. sorted ( )
4343
44- let generics : [ Metadata ] = allocations. compactMap { allocation in
44+ let generics : [ Metadata ] = allocations. compactMap { allocation -> Metadata ? in
4545 let pointer = swift_reflection_allocationMetadataPointer ( process. context, allocation)
4646 if pointer == 0 { return nil }
4747
4848 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) } ) ,
5050 name: ( process. context. name ( type: pointer, mangled: genericMetadataOptions. mangled) ?? " <unknown> " ) ,
5151 isArrayOfClass: process. context. isArrayOfClass ( pointer) )
5252 }
You can’t perform that action at this time.
0 commit comments