[Mlir-commits] [mlir] 706dec3 - [mlir] Fix the build error in OpenMPToLLVMIRTranslation.cpp

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Apr 4 04:46:38 PDT 2022


Author: PeixinQiao
Date: 2022-04-04T19:46:16+08:00
New Revision: 706dec3e47e34fd31e4bde1b9d694da133d02f79

URL: https://github.com/llvm/llvm-project/commit/706dec3e47e34fd31e4bde1b9d694da133d02f79
DIFF: https://github.com/llvm/llvm-project/commit/706dec3e47e34fd31e4bde1b9d694da133d02f79.diff

LOG: [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

Added: 
    

Modified: 
    mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index 0b10550528034..2f30fc98b435f 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -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()) {


        


More information about the Mlir-commits mailing list