diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h index 9d22f5220e96..888eb7f325ac 100644 --- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h +++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorType.h @@ -61,6 +61,7 @@ public: // Copy-assignment would be implicitly deleted (because our fields // are const), so we explicitly delete it for clarity. SparseTensorType &operator=(const SparseTensorType &) = delete; + SparseTensorType(const SparseTensorType &) = default; /// Constructs a new `SparseTensorType` with the same dimension-shape /// and element type, but with the encoding replaced by the given encoding.