[mlir] Fix -Wdeprecated-copy in SparseTensorType.h (NFC)
authorJie Fu <jiefu@tencent.com>
Thu, 9 Mar 2023 02:35:01 +0000 (10:35 +0800)
committerJie Fu <jiefu@tencent.com>
Thu, 9 Mar 2023 02:35:01 +0000 (10:35 +0800)
commit02bc7429d56f453087d0dd5f173b6b7c83fe3f58
tree35da2f24c400fb3749e7e13a46a0ada4e206e2ff
parenta08b005c71d677e077ca3d47a548955f147a70bd
[mlir] Fix -Wdeprecated-copy in SparseTensorType.h (NFC)

/data/jiefu/llvm-project/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h:63:21: error: definition of implicit copy constructor for 'SparseTensorType' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
  SparseTensorType &operator=(const SparseTensorType &) = delete;
                    ^
/data/jiefu/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorStorageLayout.h:239:9: note: in implicit copy constructor for 'mlir::sparse_tensor::SparseTensorType' first required here
      : rType(stt), fields(fields) {
        ^
1 error generated.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h