thread safety: Add move ctor to BeforeInfo to fix MSVC build

MSVC cannot infer move ctors yet.

llvm-svn: 228009
This commit is contained in:
Reid Kleckner 2015-02-03 19:04:26 +00:00
parent b7d5628784
commit e675575d1b

View File

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