Fix broken build: change switch cast to use llvm_unreachable.

PiperOrigin-RevId: 206170570
This commit is contained in:
MLIR Team 2018-07-26 09:23:10 -07:00 committed by jpienaar
parent 8f60c4ad73
commit 2480e12b8a
1 changed files with 1 additions and 1 deletions

View File

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