Skip to content

Commit f478b79

Browse files
committed
swift-inspect: Explicitly reference String.init(cString:)
This was briefly failing to build because of an ambiguous initializer while making other changes, it's better to be explicit with method names anyway. rdar://127548384
1 parent f6a2793 commit f478b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-inspect/Sources/swift-inspect/RemoteMirror+Extensions.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ extension SwiftReflectionContextRef {
9797
}
9898

9999
internal func name(allocation tag: swift_metadata_allocation_tag_t) -> String? {
100-
return swift_reflection_metadataAllocationTagName(self, tag).map(String.init)
100+
return swift_reflection_metadataAllocationTagName(self, tag).map(String.init(cString:))
101101
}
102102

103103
internal func isContiguousArray(_ array: swift_reflection_ptr_t) -> Bool {

0 commit comments

Comments
 (0)