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:
Mark Lacey
2016-01-04 15:39:21 -08:00
parent 343712d38f
commit cdc41078bd

View File

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