Skip to content

Commit 456963d

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp:54:3: error: definition of implicit copy assignment operator for 'Layout' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy] mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp:103:3: error: definition of implicit copy assignment operator for 'SGMap' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
1 parent 6ac6312 commit 456963d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUSubgroupDistribute.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ namespace {
5151
struct Layout {
5252
SmallVector<int64_t, 3> layout;
5353
Layout() = default;
54-
Layout(const Layout &other) = default;
5554
Layout(std::initializer_list<int64_t> list) : layout(list) {}
5655
void print(llvm::raw_ostream &os) const;
5756
size_t size() const { return layout.size(); }
@@ -100,7 +99,6 @@ struct SGMap {
10099

101100
public:
102101
SGMap() = default;
103-
SGMap(const SGMap &other) = default;
104102
SGMap(const WiLayout &layout, const WiData &data)
105103
: wiLayout(layout), wiData(data) {}
106104

0 commit comments

Comments
 (0)