Skip to content

Commit 0a283a7

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 de7313d commit 0a283a7

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

Lines changed: 1 addition & 1 deletion
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)