From: Yuanfang Chen Date: Mon, 30 Sep 2019 18:32:38 +0000 (+0000) Subject: Fix build warning for r373240. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a58dc36a7683bfaa4d7aeee79b1915270f1de6df;p=llvm Fix build warning for r373240. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373244 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index c5c1889cf22..b8e00395a47 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -144,11 +144,12 @@ class MachineModuleInfo { const Function *LastRequest = nullptr; ///< Used for shortcut/cache. MachineFunction *LastResult = nullptr; ///< Used for shortcut/cache. + MachineModuleInfo &operator=(MachineModuleInfo &&MMII) = delete; + public: explicit MachineModuleInfo(const LLVMTargetMachine *TM = nullptr); MachineModuleInfo(MachineModuleInfo &&MMII); - MachineModuleInfo &operator=(MachineModuleInfo &&MMII) = default; ~MachineModuleInfo();