From: Aaron Ballman Date: Wed, 16 Apr 2014 11:09:33 +0000 (+0000) Subject: Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26bbacc741d4e7b27d479d5b5c1d8f192a544ea1;p=clang Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics) to appease MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206374 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/Analyses/ThreadSafetyCommon.h b/include/clang/Analysis/Analyses/ThreadSafetyCommon.h index 04207dc9c5..351b709a7d 100644 --- a/include/clang/Analysis/Analyses/ThreadSafetyCommon.h +++ b/include/clang/Analysis/Analyses/ThreadSafetyCommon.h @@ -265,6 +265,12 @@ private: bool HasBackEdges; unsigned SuccessorsToProcess; BlockInfo() : HasBackEdges(false), SuccessorsToProcess(0) {} + BlockInfo(BlockInfo &&RHS) + : ExitMap(std::move(RHS.ExitMap)), HasBackEdges(RHS.HasBackEdges), + SuccessorsToProcess(RHS.SuccessorsToProcess) {} + + private: + BlockInfo(const BlockInfo &) LLVM_DELETED_FUNCTION; }; // We implement the CFGVisitor API