From a58dc36a7683bfaa4d7aeee79b1915270f1de6df Mon Sep 17 00:00:00 2001 From: Yuanfang Chen Date: Mon, 30 Sep 2019 18:32:38 +0000 Subject: [PATCH] Fix build warning for r373240. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373244 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineModuleInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.50.1