Skip to content

Commit 0a214ec

Browse files
committed
Work around another SIL optimizer bug
rdar://158353230 occurrs while trying to build the CodeGeneration subpackage.
1 parent a817228 commit 0a214ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeGeneration/Sources/SyntaxSupport/CompatibilityLayer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ public struct DeprecatedMemberInfo {
312312
}
313313
}
314314

315+
@_optimize(none) // Workaround for SIL optimizer crash (rdar://158353230)
315316
private func firstIndexOfChild(named targetName: String) -> Int {
316317
guard let i = children.firstIndex(where: { $0.name == targetName }) else {
317318
fatalError(

0 commit comments

Comments
 (0)