r228009 - thread safety: Add move ctor to BeforeInfo to fix MSVC build
Reid Kleckner
reid at kleckner.net
Tue Feb 3 11:04:26 PST 2015
Author: rnk
Date: Tue Feb 3 13:04:26 2015
New Revision: 228009
URL: http://llvm.org/viewvc/llvm-project?rev=228009&view=rev
Log:
thread safety: Add move ctor to BeforeInfo to fix MSVC build
MSVC cannot infer move ctors yet.
Modified:
cfe/trunk/lib/Analysis/ThreadSafety.cpp
Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/ThreadSafety.cpp?rev=228009&r1=228008&r2=228009&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/ThreadSafety.cpp (original)
+++ cfe/trunk/lib/Analysis/ThreadSafety.cpp Tue Feb 3 13:04:26 2015
@@ -261,6 +261,8 @@ private:
struct BeforeInfo {
BeforeInfo() : Vect(nullptr), Visited(false) { }
+ BeforeInfo(BeforeInfo &&O) : Vect(std::move(O.Vect)), Visited(O.Visited) {}
+
std::unique_ptr<BeforeVect> Vect;
int Visited;
};
More information about the cfe-commits
mailing list