[PATCH] D151543: [CGP] Disable default copy ctor and copy assignment operator for InstructionRemover

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 27 08:20:54 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1845d9de187b: [CGP] 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/D151543/new/

https://reviews.llvm.org/D151543

Files:
  llvm/lib/CodeGen/CodeGenPrepare.cpp


Index: llvm/lib/CodeGen/CodeGenPrepare.cpp
===================================================================
--- llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -3062,6 +3062,9 @@
 
     ~InstructionRemover() override { delete Replacer; }
 
+    InstructionRemover &operator=(const InstructionRemover &other) = delete;
+    InstructionRemover(const InstructionRemover &other) = delete;
+
     /// Resurrect the instruction and reassign it to the proper uses if
     /// new value was provided when build this action.
     void undo() override {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151543.526271.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230527/f02a2f89/attachment.bin>


More information about the llvm-commits mailing list