Skip to content

Commit ad69927

Browse files
authored
Merge pull request #32612 from lorentey/unsightlyBitCast
[stdlib] Use a direct initializer for typed to raw pointer conversion
2 parents e75562e + c579759 commit ad69927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringBridge.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ private func getConstantTaggedCocoaContents(_ cocoaString: _CocoaString) ->
472472
)!
473473

474474
guard _swift_stdlib_dyld_is_objc_constant_string(
475-
unsafeBitCast(ivarPointer, to: UnsafeRawPointer.self)
475+
UnsafeRawPointer(ivarPointer)
476476
) == 1 else {
477477
return nil
478478
}

0 commit comments

Comments
 (0)