[PATCH] D152231: [CodeGen] Disable default copy ctor and copy assignment operator for class Array

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 23:28:06 PDT 2023


yubing created this revision.
Herald added a subscriber: 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/D152231

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


Index: llvm/include/llvm/CodeGen/LiveIntervalUnion.h
===================================================================
--- llvm/include/llvm/CodeGen/LiveIntervalUnion.h
+++ llvm/include/llvm/CodeGen/LiveIntervalUnion.h
@@ -174,6 +174,8 @@
 
   public:
     Array() = default;
+    Array &operator=(const Array &other) = delete;
+    Array(const Array &other) = delete;
     ~Array() { clear(); }
 
     // Initialize the array to have Size entries.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152231.528695.patch
Type: text/x-patch
Size: 451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/4083962d/attachment.bin>


More information about the llvm-commits mailing list