[MemorySSA] Fix windows build breakage caused by r278028 (take 2)
authorGeoff Berry <gberry@codeaurora.org>
Mon, 8 Aug 2016 19:33:27 +0000 (19:33 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Mon, 8 Aug 2016 19:33:27 +0000 (19:33 +0000)
r278028: [MemorySSA] Ensure address stability of MemorySSA object.
llvm-svn: 278041

llvm/include/llvm/Transforms/Utils/MemorySSA.h

index 481ab18..cf065b2 100644 (file)
@@ -680,7 +680,12 @@ public:
   // unique_ptr<MemorySSA> to avoid build breakage on MSVC.
   struct Result {
     Result(std::unique_ptr<MemorySSA> &&MSSA) : MSSA(std::move(MSSA)) {}
+    Result(Result &&R) : MSSA(std::move(R.MSSA)) {}
     MemorySSA &getMSSA() { return *MSSA.get(); }
+
+    Result(const Result &) = delete;
+    void operator=(const Result &) = delete;
+
     std::unique_ptr<MemorySSA> MSSA;
   };