[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
Tue Jun 6 23:32:22 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG466678b52020: [CodeGen] Disable default copy ctor and copy assignment operator for class Array (authored by yubing).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152231/new/
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.529182.patch
Type: text/x-patch
Size: 451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/bafd227f/attachment.bin>
More information about the llvm-commits
mailing list