[llvm] r266665 - [Orc] Explicitly delete RPC::SequenceNumberManager's copy-constructor and

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 13:56:23 PDT 2016


Author: lhames
Date: Mon Apr 18 15:56:22 2016
New Revision: 266665

URL: http://llvm.org/viewvc/llvm-project?rev=266665&view=rev
Log:
[Orc] Explicitly delete RPC::SequenceNumberManager's copy-constructor and
copy-assignment operator.

MSVC is trying to synthesize these and failing. Hopefully explicitly deleting
them will help.


Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h?rev=266665&r1=266664&r2=266665&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h Mon Apr 18 15:56:22 2016
@@ -549,6 +549,9 @@ private:
   public:
     SequenceNumberManager() = default;
 
+    SequenceNumberManager(const SequenceNumberManager&) = delete;
+    SequenceNumberManager& operator=(const SequenceNumberManager&) = delete;
+
     SequenceNumberManager(SequenceNumberManager &&Other)
         : NextSequenceNumber(std::move(Other.NextSequenceNumber)),
           FreeSequenceNumbers(std::move(Other.FreeSequenceNumbers)) {}




More information about the llvm-commits mailing list