[llvm] r278259 - [ADT] Removed synthesized constructor introduced in r278251, since MSVC doesn't support them

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 11:08:38 PDT 2016


Author: timshen
Date: Wed Aug 10 13:08:38 2016
New Revision: 278259

URL: http://llvm.org/viewvc/llvm-project?rev=278259&view=rev
Log:
[ADT] Removed synthesized constructor introduced in r278251, since MSVC doesn't support them

Modified:
    llvm/trunk/include/llvm/ADT/ScopeExit.h

Modified: llvm/trunk/include/llvm/ADT/ScopeExit.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ScopeExit.h?rev=278259&r1=278258&r2=278259&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ScopeExit.h (original)
+++ llvm/trunk/include/llvm/ADT/ScopeExit.h Wed Aug 10 13:08:38 2016
@@ -30,8 +30,7 @@ public:
   template <typename Fp>
   explicit scope_exit(Fp &&F) : ExitFunction(std::forward<Fp>(F)) {}
 
-  scope_exit(const scope_exit &) = default;
-  scope_exit(scope_exit &&) = default;
+  scope_exit(scope_exit &&Rhs) : ExitFunction(std::move(Rhs.ExitFunction)) {}
 
   ~scope_exit() { ExitFunction(); }
 };




More information about the llvm-commits mailing list