[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
Mon Jun 5 23:54:26 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/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.528711.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/edf08e32/attachment.bin>
More information about the llvm-commits
mailing list