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:
John McCall
2014-06-20 22:43:53 +00:00
parent a9b7b01e08
commit 385879beea
40 changed files with 264 additions and 692 deletions

View File

@@ -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);