[llvm] r278041 - [MemorySSA] Fix windows build breakage caused by r278028 (take 2)
Geoff Berry via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 12:33:27 PDT 2016
Author: gberry
Date: Mon Aug 8 14:33:27 2016
New Revision: 278041
URL: http://llvm.org/viewvc/llvm-project?rev=278041&view=rev
Log:
[MemorySSA] Fix windows build breakage caused by r278028 (take 2)
r278028: [MemorySSA] Ensure address stability of MemorySSA object.
Modified:
llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
Modified: llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h?rev=278041&r1=278040&r2=278041&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h Mon Aug 8 14:33:27 2016
@@ -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;
};
More information about the llvm-commits
mailing list