Skip to content

Commit 3dc9f2d

Browse files
committed
Silence "non-void function does not return a value in all control paths" in Release builds. NFC
1 parent 576085c commit 3dc9f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static mpi::MPI_ReductionOpEnumAttr getMPIReductionOp(ReductionKindAttr kind) {
541541
case ReductionKind::BitwiseXor:
542542
return getReductionOp(mpi::MPI_ReductionOpEnum::MPI_BXOR);
543543
default:
544-
assert(false && "Unknown/unsupported reduction kind");
544+
llvm_unreachable("Unknown/unsupported reduction kind");
545545
}
546546
}
547547

0 commit comments

Comments
 (0)