Skip to content

Commit 4826a88

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in ShardToMPI.cpp (NFC)
1 parent 284cf1e commit 4826a88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Conversion/ShardToMPI/ShardToMPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

522522
static 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
};

0 commit comments

Comments
 (0)