Index: include/llvm/Analysis/MemorySSAUpdater.h =================================================================== --- include/llvm/Analysis/MemorySSAUpdater.h +++ include/llvm/Analysis/MemorySSAUpdater.h @@ -70,6 +70,11 @@ public: MemorySSAUpdater(MemorySSA *MSSA) : MSSA(MSSA) {} + MemorySSAUpdater(MemorySSAUpdater &&MSSAU) : MSSA(MSSAU.MSSA) {} + MemorySSAUpdater& operator=(MemorySSAUpdater&& MSSAU) { + MSSA = MSSAU.MSSA; + return *this; + } /// Insert a definition into the MemorySSA IR. RenameUses will rename any use /// below the new def block (and any inserted phis). RenameUses should be set /// to true if the definition may cause new aliases for loads below it. This