[mlir] Fix the build error in OpenMPToLLVMIRTranslation.cpp

Fix the build error with "-Werror,-Wcovered-switch-default".

Reviewed By: hpmorgan

Differential Revision: https://reviews.llvm.org/D123018
This commit is contained in:
PeixinQiao 2022-04-04 19:46:16 +08:00
parent 2abaa027d9
commit 706dec3e47
1 changed files with 0 additions and 7 deletions

View File

@ -851,13 +851,6 @@ convertOmpWsLoop(Operation &opInst, llvm::IRBuilderBase &builder,
schedType = llvm::omp::OMPScheduleType::Runtime;
}
break;
default:
if (orderedVal == 0) {
schedType = llvm::omp::OMPScheduleType::OrderedStatic;
break;
}
llvm_unreachable("Unknown schedule value");
break;
}
if (Optional<omp::ScheduleModifier> modifier = loop.schedule_modifier()) {