[Mlir-commits] [mlir] d7802c4 - Apply clang-tidy fixes for llvm-qualified-auto in SparseTensorCodegen.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Oct 12 19:59:01 PDT 2022
Author: Mehdi Amini
Date: 2022-10-13T02:58:34Z
New Revision: d7802c481186267e0a0dbab9aa9a4d46aa580f8c
URL: https://github.com/llvm/llvm-project/commit/d7802c481186267e0a0dbab9aa9a4d46aa580f8c
DIFF: https://github.com/llvm/llvm-project/commit/d7802c481186267e0a0dbab9aa9a4d46aa580f8c.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in SparseTensorCodegen.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
index e40c8060556e..e18e1ceadb67 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
@@ -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>();
More information about the Mlir-commits
mailing list