[Mlir-commits] [mlir] [mlir] Apply rule of five for Pass / OperationPass (PR #80998)
Mehdi Amini
llvmlistbot at llvm.org
Thu Feb 8 18:59:14 PST 2024
================
@@ -161,6 +161,13 @@ class Pass {
explicit Pass(TypeID passID, std::optional<StringRef> opName = std::nullopt)
: passID(passID), opName(opName) {}
Pass(const Pass &other) : Pass(other.passID, other.opName) {}
+ Pass &operator=(const Pass &other) {
+ this->passID = other.passID;
+ this->opName = other.opName;
+ return *this;
+ }
+ Pass(Pass &&) = delete;
----------------
joker-eph wrote:
Is this just making explicit what is the already current API of the class?
https://github.com/llvm/llvm-project/pull/80998
More information about the Mlir-commits
mailing list