This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clang] Fix static analyzer concerns
ClosedPublic

Authored by Fznamznon on Aug 3 2023, 2:21 AM.

Details

Summary

A bunch of classes in APValue free resources in the destructor but don't
have user-written copy c'tor or assignment operator, so copying them using
default ones can cause double free.

Diff Detail

Event Timeline

Fznamznon created this revision.Aug 3 2023, 2:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 2:21 AM
Fznamznon requested review of this revision.Aug 3 2023, 2:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 2:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Aug 3 2023, 6:07 AM
This revision was automatically updated to reflect the committed changes.