[NFC][clang] Fix static analyzer concerns
authorPodchishchaeva, Mariya <mariya.podchishchaeva@intel.com>
Tue, 25 Jul 2023 09:32:16 +0000 (02:32 -0700)
committerPodchishchaeva, Mariya <mariya.podchishchaeva@intel.com>
Tue, 25 Jul 2023 09:43:41 +0000 (02:43 -0700)
commitc5a13e2c7e4c1769831c99ff2bf9f3690328c3d4
tree8f5483f21221a5398b075994dd3a7eb25fb4cfcf
parent4dbe2db02d03ffee27feb43a6ef332ca6a3cbca2
[NFC][clang] Fix static analyzer concerns

EHScopeStack doesn't seem to be intended for copy. It frees memory in
the destructor and doesn't have user-written copy c'tor and assignment
operator, so delete them to avoid using default ones which would do
wrong.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D156133
clang/lib/CodeGen/EHScopeStack.h