Skip to content

Commit 4596393

Browse files
committed
SwiftCompilerSources: fix a compiler error when building with hosttools
Fixes a simple copy-paste error, introduced in #67296
1 parent 530af74 commit 4596393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/Sources/Basic/Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public struct StringRef : CustomStringConvertible, NoReflectionChildren {
7878
let buffer = UnsafeBufferPointer<UInt8>(start: _bridged.bytes_begin(),
7979
count: count)
8080
#else
81-
let buffer = UnsafeBufferPointer<UInt8>(start: _bridged.bytes_begin(),
81+
let buffer = UnsafeBufferPointer<UInt8>(start: _bridged.__bytes_beginUnsafe(),
8282
count: count)
8383
#endif
8484
return buffer[index]

0 commit comments

Comments
 (0)