Apply clang-tidy fixes for llvm-qualified-auto in SparseTensorCodegen.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Thu, 6 Oct 2022 19:24:31 +0000 (19:24 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 13 Oct 2022 02:58:34 +0000 (02:58 +0000)
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp

index e40c8060556e786c045429536a27f4572e6e5358..e18e1ceadb67b6db22fb093263b102a99a09fd34 100644 (file)
@@ -114,7 +114,7 @@ convertSparseTensorType(Type type, SmallVectorImpl<Type> &fields) {
   if (!enc)
     return llvm::None;
   // Construct the basic types.
-  auto context = type.getContext();
+  auto *context = type.getContext();
   unsigned idxWidth = enc.getIndexBitWidth();
   unsigned ptrWidth = enc.getPointerBitWidth();
   RankedTensorType rType = type.cast<RankedTensorType>();