[CGP] Disable default copy ctor and copy assignment operator for InstructionRemover
authorBing1 Yu <bing1.yu@intel.com>
Fri, 26 May 2023 08:48:39 +0000 (16:48 +0800)
committerBing1 Yu <bing1.yu@intel.com>
Sat, 27 May 2023 15:20:33 +0000 (23:20 +0800)
commit1845d9de187b726dfe074218377c3d77ce43277a
tree89ea2bccb89cd43608f323acf194d1cbce8e6035
parentf59795b2b703d5a782e4c29c0e786ee01942f16a
[CGP] Disable default copy ctor and copy assignment operator for InstructionRemover

class InstructionRemover manages resources such as dynamically allocated memory, it's generally a good practice to either implement a custom copy constructor or disable the default one.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D151543
llvm/lib/CodeGen/CodeGenPrepare.cpp