1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[MemorySSA] Fix windows build breakage caused by r278028 (take 2)

r278028: [MemorySSA] Ensure address stability of MemorySSA object.
llvm-svn: 278041
This commit is contained in:
Geoff Berry 2016-08-08 19:33:27 +00:00
parent 24135ad35e
commit 5bac5c9e63

View 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;
};