[PATCH] D152237: [CodeGen] Disable default copy ctor and copy assignment operator for PressureDiffs

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 8 00:51:21 PDT 2023


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

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152237

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


Index: llvm/include/llvm/CodeGen/RegisterPressure.h
===================================================================
--- llvm/include/llvm/CodeGen/RegisterPressure.h
+++ llvm/include/llvm/CodeGen/RegisterPressure.h
@@ -201,6 +201,8 @@
 
 public:
   PressureDiffs() = default;
+  PressureDiffs &operator=(const PressureDiffs &other) = delete;
+  PressureDiffs(const PressureDiffs &other) = delete;
   ~PressureDiffs() { free(PDiffArray); }
 
   void clear() { Size = 0; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152237.529519.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/ed10f21b/attachment.bin>


More information about the llvm-commits mailing list