r206374 - Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics) to appease MSVC.

Aaron Ballman aaron at aaronballman.com
Wed Apr 16 04:09:33 PDT 2014


Author: aaronballman
Date: Wed Apr 16 06:09:33 2014
New Revision: 206374

URL: http://llvm.org/viewvc/llvm-project?rev=206374&view=rev
Log:
Adding a move constructor (due to CopyOnWriteVector requiring move-only semantics) to appease MSVC.

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h

Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h?rev=206374&r1=206373&r2=206374&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyCommon.h Wed Apr 16 06:09:33 2014
@@ -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





More information about the cfe-commits mailing list