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 {
114
114
? [ swift_reflection_ptr_t: [ swift_reflection_ptr_t] ] ( )
115
115
: try process. context. allocationStacks
116
116
117
- let generics : [ Metadata ] = allocations. compactMap { allocation in
117
+ let generics : [ Metadata ] = allocations. compactMap { allocation -> Metadata ? in
118
118
let pointer = swift_reflection_allocationMetadataPointer ( process. context, allocation)
119
119
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) } )
121
121
let garbage = ( allocation == nil && swift_reflection_ownsAddressStrict ( process. context, UInt ( pointer) ) == 0 )
122
122
var currentBacktrace : String ?
123
123
if let style = backtraceOptions. style, let allocation, let stack = stacks [ allocation. ptr] {
You can’t perform that action at this time.
0 commit comments