We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917d652 commit 9333464Copy full SHA for 9333464
Sources/Testing/Discovery+Platform.swift
@@ -98,6 +98,12 @@ private func _testContentSectionBounds() -> [SectionBounds] {
98
99
withUnsafeMutablePointer(to: &result) { result in
100
swift_enumerateAllMetadataSections({ sections, context in
101
+ let version = sections.load(as: UInt.self)
102
+ guard version >= 4 else {
103
+ // This structure is too old to contain the swift5_tests field.
104
+ return true
105
+ }
106
+
107
let sections = sections.load(as: MetadataSections.self)
108
let result = context.assumingMemoryBound(to: [SectionBounds].self)
109
0 commit comments