This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clang] Fix static analyzer concerns
ClosedPublic

Authored by Fznamznon on Jul 24 2023, 8:15 AM.

Details

Summary

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.

Diff Detail

Event Timeline

Fznamznon created this revision.Jul 24 2023, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 8:15 AM
Fznamznon requested review of this revision.Jul 24 2023, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 8:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jul 24 2023, 9:33 AM
This revision was automatically updated to reflect the committed changes.