Skip to content

[MLIR] Add missing move constructor / assignment operator to DialectRegistry #141915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025

Conversation

WillFroom
Copy link
Contributor

Fix after #140963

@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels May 29, 2025
@llvmbot
Copy link
Member

llvmbot commented May 29, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-core

Author: Will Froom (WillFroom)

Changes

Fix after #140963


Full diff: https://github.com/llvm/llvm-project/pull/141915.diff

1 Files Affected:

  • (modified) mlir/include/mlir/IR/DialectRegistry.h (+2)
diff --git a/mlir/include/mlir/IR/DialectRegistry.h b/mlir/include/mlir/IR/DialectRegistry.h
index 7bcf1eda7c636..b7d3e5d67e6d7 100644
--- a/mlir/include/mlir/IR/DialectRegistry.h
+++ b/mlir/include/mlir/IR/DialectRegistry.h
@@ -145,6 +145,8 @@ class DialectRegistry {
   explicit DialectRegistry();
   DialectRegistry(const DialectRegistry &) = delete;
   DialectRegistry &operator=(const DialectRegistry &other) = delete;
+  DialectRegistry(DialectRegistry &&) = default;
+  DialectRegistry &operator=(DialectRegistry &&other) = default;
 
   template <typename ConcreteDialect>
   void insert() {

@WillFroom WillFroom merged commit ebe25d8 into llvm:main May 29, 2025
11 of 14 checks passed
svkeerthy pushed a commit that referenced this pull request May 29, 2025
google-yfyang pushed a commit to google-yfyang/llvm-project that referenced this pull request May 29, 2025
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants