[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 23:28:31 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbaa31baab54b: [CodeGen] Disable default copy ctor and copy assignment operator for class… (authored by yubing).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152238/new/

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.529177.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/2f0f64ff/attachment.bin>


More information about the llvm-commits mailing list