File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tools/swift-inspect/Sources/swift-inspect Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ internal enum BacktraceStyle {
20
20
internal func backtrace( _ stack: [ swift_reflection_ptr_t ] , style: BacktraceStyle ,
21
21
_ symbolicate: ( swift_addr_t ) -> ( module: String ? , symbol: String ? ) ) -> String {
22
22
func entry( _ address: swift_reflection_ptr_t ) -> String {
23
- let ( module, symbol) = symbolicate ( address)
23
+ let ( module, symbol) = symbolicate ( swift_addr_t ( address) )
24
24
return " \( hex: address) ( \( module ?? " <uknown> " ) ) \( symbol ?? " <unknown> " ) "
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ extension SwiftReflectionContextRef {
65
65
}
66
66
67
67
internal func name( type: swift_reflection_ptr_t ) -> String ? {
68
- let typeref : UInt64 = swift_reflection_typeRefForMetadata ( self , UInt ( type) )
68
+ let typeref = swift_reflection_typeRefForMetadata ( self , UInt ( type) )
69
69
if typeref == 0 { return nil }
70
70
71
71
guard let name = swift_reflection_copyDemangledNameForTypeRef ( self , typeref) else {
@@ -97,7 +97,7 @@ extension SwiftReflectionContextRef {
97
97
internal func isArrayOfClass( _ array: swift_reflection_ptr_t ) -> Bool {
98
98
guard isContiguousArray ( array) else { return false }
99
99
100
- let typeref : UInt64 = swift_reflection_typeRefForMetadata ( self , UInt ( array) )
100
+ let typeref = swift_reflection_typeRefForMetadata ( self , UInt ( array) )
101
101
if typeref == 0 { return false }
102
102
103
103
let count = swift_reflection_genericArgumentCountOfTypeRef ( typeref)
You can’t perform that action at this time.
0 commit comments