forked from OSchip/llvm-project
[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:
parent
2abaa027d9
commit
706dec3e47
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue