[PATCH] D152235: [CodeGen] Disable default copy ctor and copy assignment operator for InterferenceCache
Bing Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 5 23:50:43 PDT 2023
yubing created this revision.
Herald added a subscriber: hiraditya.
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/D152235
Files:
llvm/lib/CodeGen/InterferenceCache.h
Index: llvm/lib/CodeGen/InterferenceCache.h
===================================================================
--- llvm/lib/CodeGen/InterferenceCache.h
+++ llvm/lib/CodeGen/InterferenceCache.h
@@ -156,7 +156,8 @@
public:
InterferenceCache() = default;
-
+ InterferenceCache &operator=(const InterferenceCache &other) = delete;
+ InterferenceCache(const InterferenceCache &other) = delete;
~InterferenceCache() {
free(PhysRegEntries);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152235.528706.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/3884ac3f/attachment.bin>
More information about the llvm-commits
mailing list