mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the CheckedCastKind from SIL dynamic casts.
It is straightforward and less redundant to recover this information from the operand types. Swift SVN r19056
This commit is contained in:
@@ -850,7 +850,7 @@ static bool specializeClassMethodDispatch(ApplyInst *AI) {
|
||||
SILBuilder Builder(Entry);
|
||||
// Create the checked_cast_branch instruction that checks at runtime if the
|
||||
// class instance is identical to the SILType.
|
||||
It = Builder.createCheckedCastBranch(AI->getLoc(), CheckedCastKind::Identical,
|
||||
It = Builder.createCheckedCastBranch(AI->getLoc(), /*exact*/ true,
|
||||
ClassInstance, InstanceType, Iden, Virt);
|
||||
|
||||
SILBuilder VirtBuilder(Virt);
|
||||
|
||||
Reference in New Issue
Block a user