[Mlir-commits] [mlir] 773ea16 - [AST] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Tue Dec 28 22:53:07 PST 2021
Author: Kazu Hirata
Date: 2021-12-28T22:52:56-08:00
New Revision: 773ea16eba53c6ce34b458de6a3a3a1fa7ddafc5
URL: https://github.com/llvm/llvm-project/commit/773ea16eba53c6ce34b458de6a3a3a1fa7ddafc5
DIFF: https://github.com/llvm/llvm-project/commit/773ea16eba53c6ce34b458de6a3a3a1fa7ddafc5.diff
LOG: [AST] Fix a warning
This patch fixes:
mlir/include/mlir/Tools/PDLL/AST/Types.h:54:3: error: definition of
implicit copy assignment operator for 'Type' is deprecated because
it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
Added:
Modified:
mlir/include/mlir/Tools/PDLL/AST/Types.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Tools/PDLL/AST/Types.h b/mlir/include/mlir/Tools/PDLL/AST/Types.h
index 87b1a6cb72d88..cac3cae962c2d 100644
--- a/mlir/include/mlir/Tools/PDLL/AST/Types.h
+++ b/mlir/include/mlir/Tools/PDLL/AST/Types.h
@@ -51,7 +51,6 @@ class Type {
};
Type(Storage *impl = nullptr) : impl(impl) {}
- Type(const Type &other) = default;
bool operator==(const Type &other) const { return impl == other.impl; }
bool operator!=(const Type &other) const { return !(*this == other); }
More information about the Mlir-commits
mailing list