diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 497d3a6ab17b1..ff9c3cd2d1136 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -977,6 +977,8 @@ class ApplyInlineDebugLocation { ApplyInlineDebugLocation(CodeGenFunction &CGF, GlobalDecl InlinedFn); /// Restore everything back to the original state. ~ApplyInlineDebugLocation(); + ApplyInlineDebugLocation(const ApplyInlineDebugLocation &) = delete; + ApplyInlineDebugLocation &operator=(ApplyInlineDebugLocation &) = delete; }; class SanitizerDebugLocation { @@ -988,6 +990,8 @@ class SanitizerDebugLocation { ArrayRef Ordinals, SanitizerHandler Handler); ~SanitizerDebugLocation(); + SanitizerDebugLocation(const SanitizerDebugLocation &) = delete; + SanitizerDebugLocation &operator=(SanitizerDebugLocation &) = delete; }; } // namespace CodeGen