Skip to content

Commit bda763a

Browse files
committed
[mlir] Fix -Wreturn-type in MeshOps.cpp (NFC)
/llvm-project/mlir/lib/Dialect/Mesh/IR/MeshOps.cpp:73:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type] } ^ 1 error generated.
1 parent af4abc4 commit bda763a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Mesh/IR/MeshOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Partial mesh::getPartialTypeFromReduction(IteratorType iType) {
6868
case IteratorType::ReductionMin:
6969
return Partial::Min;
7070
default:
71-
assert(0 && "No corresponding partial type can be found");
71+
llvm_unreachable("No corresponding partial type can be found");
7272
}
7373
}
7474

0 commit comments

Comments
 (0)