File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Conversion/ShardToMPI Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ class ConvertProcessLinearIndexOp
301301 ConversionPatternRewriter &rewriter) const override {
302302 // Create mpi::CommRankOp
303303 Location loc = op.getLoc ();
304- auto ctx = op.getContext ();
304+ auto * ctx = op.getContext ();
305305 Value commWorld =
306306 mpi::CommWorldOp::create (rewriter, loc, mpi::CommType::get (ctx));
307307 auto rank = mpi::CommRankOp::create (
@@ -520,7 +520,7 @@ struct ConvertShardShapeOp : public OpConversionPattern<ShardShapeOp> {
520520};
521521
522522static mpi::MPI_ReductionOpEnumAttr getMPIReductionOp (ReductionKindAttr kind) {
523- auto ctx = kind.getContext ();
523+ auto * ctx = kind.getContext ();
524524 auto getReductionOp = [ctx](mpi::MPI_ReductionOpEnum redOp) {
525525 return mpi::MPI_ReductionOpEnumAttr::get (ctx, redOp);
526526 };
You can’t perform that action at this time.
0 commit comments