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 @@ -114,10 +114,10 @@ internal struct DumpGenericMetadata: ParsableCommand {
114114 ? [ swift_reflection_ptr_t: [ swift_reflection_ptr_t] ] ( )
115115 : try process. context. allocationStacks
116116
117- let generics : [ Metadata ] = allocations. compactMap { allocation in
117+ let generics : [ Metadata ] = allocations. compactMap { allocation -> Metadata ? in
118118 let pointer = swift_reflection_allocationMetadataPointer ( process. context, allocation)
119119 if pointer == 0 { return nil }
120- let allocation = allocations. last ( where: { pointer >= $0. ptr && pointer < $0. ptr + UInt64 ( $0. size) } )
120+ let allocation = allocations. last ( where: { pointer >= $0. ptr && pointer < $0. ptr + swift_reflection_ptr_t ( $0. size) } )
121121 let garbage = ( allocation == nil && swift_reflection_ownsAddressStrict ( process. context, UInt ( pointer) ) == 0 )
122122 var currentBacktrace : String ?
123123 if let style = backtraceOptions. style, let allocation, let stack = stacks [ allocation. ptr] {
You can’t perform that action at this time.
0 commit comments