mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move cases for switch_enum_addr and checked_cast_addr_br in switch.
These should be with the other cases we do not expect block arguments for.
This commit is contained in:
@@ -283,13 +283,13 @@ void DCE::markTerminatorArgsLive(SILBasicBlock *Pred,
|
||||
switch (Term->getTermKind()) {
|
||||
case TermKind::ReturnInst:
|
||||
case TermKind::ThrowInst:
|
||||
case TermKind::SwitchEnumAddrInst:
|
||||
case TermKind::CheckedCastAddrBranchInst:
|
||||
case TermKind::Invalid:
|
||||
llvm_unreachable("Unexpected terminator kind!");
|
||||
|
||||
case TermKind::UnreachableInst:
|
||||
case TermKind::SwitchValueInst:
|
||||
case TermKind::SwitchEnumAddrInst:
|
||||
case TermKind::CheckedCastAddrBranchInst:
|
||||
llvm_unreachable("Unexpected argument for terminator kind!");
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user