[llvm] r217879 - Spell out a move ctor. Even the 2013 vintage of MSVC cannot synthesize move ctors.

Benjamin Kramer benny.kra at googlemail.com
Tue Sep 16 09:16:39 PDT 2014


Author: d0k
Date: Tue Sep 16 11:16:39 2014
New Revision: 217879

URL: http://llvm.org/viewvc/llvm-project?rev=217879&view=rev
Log:
Spell out a move ctor. Even the 2013 vintage of MSVC cannot synthesize move ctors.

Modified:
    llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h

Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h?rev=217879&r1=217878&r2=217879&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h (original)
+++ llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h Tue Sep 16 11:16:39 2014
@@ -51,7 +51,7 @@ public:
     return *this;
   }
 #else
-  AllocaHolder(AllocaHolder &&RHS) = default;
+  AllocaHolder(AllocaHolder &&RHS) : Allocations(std::move(RHS.Allocations)) {}
 #endif
 
   ~AllocaHolder() {





More information about the llvm-commits mailing list