forked from OSchip/llvm-project
Fix broken build: change switch cast to use llvm_unreachable.
PiperOrigin-RevId: 206170570
This commit is contained in:
parent
8f60c4ad73
commit
2480e12b8a
|
@ -227,7 +227,7 @@ void TerminatorInst::eraseFromBlock() {
|
|||
MutableArrayRef<BBDestination> TerminatorInst::getDestinations() {
|
||||
switch (getKind()) {
|
||||
case Kind::Operation:
|
||||
assert(0 && "not a terminator");
|
||||
llvm_unreachable("not a terminator");
|
||||
case Kind::Branch:
|
||||
return cast<BranchInst>(this)->getDestinations();
|
||||
case Kind::CondBranch:
|
||||
|
|
Loading…
Reference in New Issue