Skip to content

Commit 9ee1f15

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in MPIToLLVM.cpp (NFC)
1 parent e07b596 commit 9ee1f15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class OMPIImplTraits : public MPIImplTraits {
272272

273273
Value getCommWorld(const Location loc,
274274
ConversionPatternRewriter &rewriter) override {
275-
auto context = rewriter.getContext();
275+
auto *context = rewriter.getContext();
276276
// get external opaque struct pointer type
277277
auto commStructT =
278278
LLVM::LLVMStructType::getOpaque("ompi_communicator_t", context);
@@ -324,7 +324,7 @@ class OMPIImplTraits : public MPIImplTraits {
324324
else
325325
assert(false && "unsupported type");
326326

327-
auto context = rewriter.getContext();
327+
auto *context = rewriter.getContext();
328328
// get external opaque struct pointer type
329329
auto typeStructT =
330330
LLVM::LLVMStructType::getOpaque("ompi_predefined_datatype_t", context);
@@ -383,7 +383,7 @@ class OMPIImplTraits : public MPIImplTraits {
383383
op = "ompi_mpi_replace";
384384
break;
385385
}
386-
auto context = rewriter.getContext();
386+
auto *context = rewriter.getContext();
387387
// get external opaque struct pointer type
388388
auto opStructT =
389389
LLVM::LLVMStructType::getOpaque("ompi_predefined_op_t", context);

0 commit comments

Comments
 (0)