From 49b568ead825dddd7919a1f466f3f7760df4ade5 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 16 Apr 2014 11:09:33 +0000 Subject: [PATCH] Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics) to appease MSVC. llvm-svn: 206374 --- clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h index 04207dc9c5d1..351b709a7d34 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h +++ b/clang/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