File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
SwiftCompilerSources/Sources/Basic Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public struct SourceLoc {
27
27
guard bridged. isValid ( ) else {
28
28
return nil
29
29
}
30
- self . locationInFile = bridged. getOpaquePointerValue ( ) . assumingMemoryBound ( to: UInt8 . self)
30
+ self . locationInFile = bridged. __getOpaquePointerValueUnsafe ( ) . assumingMemoryBound ( to: UInt8 . self)
31
31
}
32
32
33
33
public var bridged : swift . SourceLoc {
@@ -57,7 +57,7 @@ public struct CharSourceRange {
57
57
}
58
58
59
59
public init ? ( bridged: swift . CharSourceRange ) {
60
- guard let start = SourceLoc ( bridged: bridged. getStart ( ) ) else {
60
+ guard let start = SourceLoc ( bridged: bridged. __getStartUnsafe ( ) ) else {
61
61
return nil
62
62
}
63
63
self . init ( start: start, byteLength: bridged. getByteLength ( ) )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ extension String {
65
65
/// Underscored to avoid name collision with the std overlay.
66
66
/// To be replaced with an overlay call once the CI uses SDKs built with Swift 5.8.
67
67
public init ( _cxxString s: std . string ) {
68
- self . init ( cString: s. c_str ( ) )
68
+ self . init ( cString: s. __c_strUnsafe ( ) )
69
69
withExtendedLifetime ( s) { }
70
70
}
71
71
}
You can’t perform that action at this time.
0 commit comments