]> granicus.if.org Git - llvm/commitdiff
Fix build warning for r373240.
authorYuanfang Chen <yuanfang.chen@sony.com>
Mon, 30 Sep 2019 18:32:38 +0000 (18:32 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Mon, 30 Sep 2019 18:32:38 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373244 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineModuleInfo.h

index c5c1889cf22a71462414a75bba1f679d0ec7d18e..b8e00395a475c3119303739c996d0f5ba5c785ad 100644 (file)
@@ -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();