Skip to content

Commit 5d1d2a8

Browse files
WillFroomgoogle-yfyang
authored andcommitted
[MLIR] Add missing move constructor / assignment operator to DialectRegistry (llvm#141915)
Fix after llvm#140963
1 parent 93c3207 commit 5d1d2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/include/mlir/IR/DialectRegistry.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ class DialectRegistry {
145145
explicit DialectRegistry();
146146
DialectRegistry(const DialectRegistry &) = delete;
147147
DialectRegistry &operator=(const DialectRegistry &other) = delete;
148+
DialectRegistry(DialectRegistry &&) = default;
149+
DialectRegistry &operator=(DialectRegistry &&other) = default;
148150

149151
template <typename ConcreteDialect>
150152
void insert() {

0 commit comments

Comments
 (0)