[PATCH] D152238: [CodeGen] Disable default copy ctor and copy assignment operator for class Circuits

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 00:01:57 PDT 2023


yubing created this revision.
Herald added a project: All.
yubing requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152238

Files:
  llvm/include/llvm/CodeGen/MachinePipeliner.h


Index: llvm/include/llvm/CodeGen/MachinePipeliner.h
===================================================================
--- llvm/include/llvm/CodeGen/MachinePipeliner.h
+++ llvm/include/llvm/CodeGen/MachinePipeliner.h
@@ -179,7 +179,8 @@
       for (const auto &NodeNum : Topo)
         Node2Idx->at(NodeNum) = Idx++;
     }
-
+    Circuits &operator=(const Circuits &other) = delete;
+    Circuits(const Circuits &other) = delete;
     ~Circuits() { delete Node2Idx; }
 
     /// Reset the data structures used in the circuit algorithm.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152238.528715.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/2ea8e347/attachment.bin>


More information about the llvm-commits mailing list