From 3dc9f2da29f7ef36ac804e20f9fb6ee1b868516e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 23 Jun 2025 17:58:41 +0200 Subject: [PATCH] Silence "non-void function does not return a value in all control paths" in Release builds. NFC --- mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp b/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp index 1b9efb105b69..b93128441f2b 100644 --- a/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp +++ b/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp @@ -541,7 +541,7 @@ static mpi::MPI_ReductionOpEnumAttr getMPIReductionOp(ReductionKindAttr kind) { case ReductionKind::BitwiseXor: return getReductionOp(mpi::MPI_ReductionOpEnum::MPI_BXOR); default: - assert(false && "Unknown/unsupported reduction kind"); + llvm_unreachable("Unknown/unsupported reduction kind"); } }