diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ADT/ScopeExit.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/ScopeExit.h b/llvm/include/llvm/ADT/ScopeExit.h index 497e80bfac4..6786a61c0bf 100644 --- a/llvm/include/llvm/ADT/ScopeExit.h +++ b/llvm/include/llvm/ADT/ScopeExit.h @@ -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(); } }; |

