[llvm] baa31ba - [CodeGen] Disable default copy ctor and copy assignment operator for class Circuits

Bing1 Yu via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 23:28:25 PDT 2023


Author: Bing1 Yu
Date: 2023-06-07T14:28:16+08:00
New Revision: baa31baab54b12e6ebb025791ebc0463371adcd6

URL: https://github.com/llvm/llvm-project/commit/baa31baab54b12e6ebb025791ebc0463371adcd6
DIFF: https://github.com/llvm/llvm-project/commit/baa31baab54b12e6ebb025791ebc0463371adcd6.diff

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

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D152238

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachinePipeliner.h b/llvm/include/llvm/CodeGen/MachinePipeliner.h
index fb9dd0732d253..04055ba9732dd 100644
--- a/llvm/include/llvm/CodeGen/MachinePipeliner.h
+++ b/llvm/include/llvm/CodeGen/MachinePipeliner.h
@@ -179,7 +179,8 @@ class SwingSchedulerDAG : public ScheduleDAGInstrs {
       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.


        


More information about the llvm-commits mailing list