[PATCH] D152240: [CodeGen] Disable default copy ctor and copy assignment operator for MachineSchedContext

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


yubing created this revision.
Herald added subscribers: javed.absar, MatzeB.
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/D152240

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


Index: llvm/include/llvm/CodeGen/MachineScheduler.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineScheduler.h
+++ llvm/include/llvm/CodeGen/MachineScheduler.h
@@ -135,6 +135,8 @@
   RegisterClassInfo *RegClassInfo;
 
   MachineSchedContext();
+  MachineSchedContext &operator=(const MachineSchedContext &other) = delete;
+  MachineSchedContext(const MachineSchedContext &other) = delete;
   virtual ~MachineSchedContext();
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152240.528720.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/449ee197/attachment.bin>


More information about the llvm-commits mailing list