From f3d64644d8d75f9317421fe5b9b0f2d030a1a63f Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Tue, 24 Jan 2023 11:36:46 +0100 Subject: [PATCH] [MC] Temporarily remove the deleted constructors, they break C++20 build This helps to unblock our internal integrate that now relies on C++20 configuration. I will follow up with a proposal to re-enable the deleted constructors soon, but it is a bit involved to avoid increasing the sizes of struct. --- llvm/include/llvm/MC/MCInstrDesc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llvm/include/llvm/MC/MCInstrDesc.h b/llvm/include/llvm/MC/MCInstrDesc.h index 15b0a69..3bba105 100644 --- a/llvm/include/llvm/MC/MCInstrDesc.h +++ b/llvm/include/llvm/MC/MCInstrDesc.h @@ -197,13 +197,10 @@ enum Flag { /// directly to describe itself. class MCInstrDesc { public: + // FIXME: Disable copies and moves. // Do not allow MCInstrDescs to be copied or moved. They should only exist in // the Insts table because they rely on knowing their own address to // find other information elsewhere in the same table. - MCInstrDesc(const MCInstrDesc &) = delete; - MCInstrDesc(MCInstrDesc &&) = delete; - MCInstrDesc &operator=(const MCInstrDesc &) = delete; - MCInstrDesc &operator=(MCInstrDesc &&) = delete; unsigned short Opcode; // The opcode number unsigned short NumOperands; // Num of args (may be more if variable_ops) -- 2.7.4