From: Reid Kleckner Date: Tue, 3 Feb 2015 19:04:26 +0000 (+0000) Subject: thread safety: Add move ctor to BeforeInfo to fix MSVC build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfed5475baa054a26a1882a6c2f09a9325ec2815;p=clang thread safety: Add move ctor to BeforeInfo to fix MSVC build MSVC cannot infer move ctors yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228009 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ThreadSafety.cpp b/lib/Analysis/ThreadSafety.cpp index 067328dc05..2bd2671a48 100644 --- a/lib/Analysis/ThreadSafety.cpp +++ b/lib/Analysis/ThreadSafety.cpp @@ -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 Vect; int Visited; };