Skip to content

Commit 05fb8c7

Browse files
committed
Remove CheckedCastValue from Swift compiler sources.
1 parent fd9ebb5 commit 05fb8c7

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,6 @@ class UnconditionalCheckedCastInst : SingleValueInstruction, UnaryInstruction {
408408
public override var mayTrap: Bool { true }
409409
}
410410

411-
final public
412-
class UnconditionalCheckedCastValueInst : SingleValueInstruction,
413-
UnaryInstruction {
414-
public override var mayTrap: Bool { true }
415-
}
416-
417411
final public
418412
class ConvertFunctionInst : SingleValueInstruction, UnaryInstruction {}
419413

@@ -624,7 +618,3 @@ final public class CheckedCastBranchInst : TermInst, UnaryInstruction {
624618

625619
final public class CheckedCastAddrBranchInst : TermInst, UnaryInstruction {
626620
}
627-
628-
final public class CheckedCastValueBranchInst : TermInst, UnaryInstruction {
629-
}
630-

SwiftCompilerSources/Sources/SIL/Registration.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public func registerSILClasses() {
9292
register(RefElementAddrInst.self)
9393
register(RefTailAddrInst.self)
9494
register(UnconditionalCheckedCastInst.self)
95-
register(UnconditionalCheckedCastValueInst.self)
9695
register(ConvertFunctionInst.self)
9796
register(ThinToThickFunctionInst.self)
9897
register(ObjCExistentialMetatypeToObjectInst.self)
@@ -140,5 +139,4 @@ public func registerSILClasses() {
140139
register(AwaitAsyncContinuationInst.self)
141140
register(CheckedCastBranchInst.self)
142141
register(CheckedCastAddrBranchInst.self)
143-
register(CheckedCastValueBranchInst.self)
144142
}

0 commit comments

Comments
 (0)