Skip to content

Commit 2ab8db2

Browse files
committed
[mlir] fix copying DialectRegistry and OperationState
1 parent 4f869e0 commit 2ab8db2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mlir/include/mlir/IR/DialectRegistry.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class DialectRegistry {
143143

144144
public:
145145
explicit DialectRegistry();
146+
DialectRegistry(const DialectRegistry &) = delete;
146147

147148
template <typename ConcreteDialect>
148149
void insert() {

mlir/include/mlir/IR/OperationSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ struct OperationState {
985985
BlockRange successors = {},
986986
MutableArrayRef<std::unique_ptr<Region>> regions = {});
987987
OperationState(OperationState &&other) = default;
988-
OperationState(const OperationState &other) = default;
988+
OperationState(const OperationState &other) = delete;
989989
OperationState &operator=(OperationState &&other) = default;
990990
OperationState &operator=(const OperationState &other) = default;
991991
~OperationState();

0 commit comments

Comments
 (0)