diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 4893689f856ea..3c8a51590d1b5 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/lib/CodeGen/EHScopeStack.h @@ -278,6 +278,9 @@ class EHScopeStack { CGF(nullptr) {} ~EHScopeStack() { delete[] StartOfBuffer; } + EHScopeStack(const EHScopeStack &) = delete; + EHScopeStack &operator=(const EHScopeStack &) = delete; + /// Push a lazily-created cleanup on the stack. template void pushCleanup(CleanupKind Kind, As... A) { static_assert(alignof(T) <= ScopeStackAlignment,