diff --git a/src/ast/module.cc b/src/ast/module.cc index fd2090d6da..635d89b4d3 100644 --- a/src/ast/module.cc +++ b/src/ast/module.cc @@ -25,6 +25,7 @@ namespace ast { Module::Module() = default; Module::Module(Module&&) = default; +Module& Module::operator=(Module&& rhs) = default; Module::~Module() = default; diff --git a/src/ast/module.h b/src/ast/module.h index 9caf6aa3cf..bd5abbda3a 100644 --- a/src/ast/module.h +++ b/src/ast/module.h @@ -40,6 +40,8 @@ class Module { Module(); /// Move constructor Module(Module&&); + // Move assignment + Module& operator=(Module&& rhs); ~Module(); /// @return a deep copy of this module diff --git a/src/ast/type_manager.cc b/src/ast/type_manager.cc index 3369692518..39f4e07f19 100644 --- a/src/ast/type_manager.cc +++ b/src/ast/type_manager.cc @@ -21,6 +21,7 @@ namespace ast { TypeManager::TypeManager() = default; TypeManager::TypeManager(TypeManager&&) = default; +TypeManager& TypeManager::operator=(TypeManager&& rhs) = default; TypeManager::~TypeManager() = default; void TypeManager::Reset() { diff --git a/src/ast/type_manager.h b/src/ast/type_manager.h index f580c1a618..b0b9fc62fc 100644 --- a/src/ast/type_manager.h +++ b/src/ast/type_manager.h @@ -31,6 +31,8 @@ class TypeManager { TypeManager(); /// Move constructor TypeManager(TypeManager&&); + // Move assignment + TypeManager& operator=(TypeManager&& rhs); ~TypeManager(); /// Clears all registered types.