Skip to content

Commit 31fd6d1

Browse files
authored
[mlir][mesh] fix ProcessMultiIndexOp building (llvm#77676)
Insert default empty mesh axes array instead of null attribute without MLIR context, since the attribute is default-valued not just optional.
1 parent 66d022f commit 31fd6d1

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
@@ -353,7 +353,7 @@ void ProcessMultiIndexOp::build(OpBuilder &odsBuilder, OperationState &odsState,
353353
ClusterOp mesh) {
354354
build(odsBuilder, odsState,
355355
SmallVector<Type>(mesh.getRank(), odsBuilder.getIndexType()),
356-
mesh.getSymName(), MeshAxesAttr());
356+
mesh.getSymName(), ArrayRef<MeshAxis>());
357357
}
358358

359359
void ProcessMultiIndexOp::build(OpBuilder &odsBuilder, OperationState &odsState,

0 commit comments

Comments
 (0)