[Mlir-commits] [mlir] edae78d - [mlir][OpenMP][NFC] Fix gcc 14 warning (#151941)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Aug 4 05:23:02 PDT 2025
Author: Tom Eccles
Date: 2025-08-04T13:22:59+01:00
New Revision: edae78d2aa5bcbee36084907684c7f1c6497f628
URL: https://github.com/llvm/llvm-project/commit/edae78d2aa5bcbee36084907684c7f1c6497f628
DIFF: https://github.com/llvm/llvm-project/commit/edae78d2aa5bcbee36084907684c7f1c6497f628.diff
LOG: [mlir][OpenMP][NFC] Fix gcc 14 warning (#151941)
GCC couldn't tell that the enum is checked exhaustively and so was
warning about there being no return on this path from the function.
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 49e1e55c686a6..762cc88d9fc3d 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -3391,6 +3391,7 @@ static llvm::omp::Directive convertCancellationConstructType(
case omp::ClauseCancellationConstructType::Taskgroup:
return llvm::omp::Directive::OMPD_taskgroup;
}
+ llvm_unreachable("Unhandled cancellation construct type");
}
static LogicalResult
More information about the Mlir-commits
mailing list