This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clang] Fix static analyzer concerns
ClosedPublic

Authored by Fznamznon on Aug 2 2023, 7:50 AM.

Details

Summary

IdDeclInfoMap frees resources in the destructor but doesn't
have user-written copy c'tor or assignment operator, so copying it using
default ones can cause double free.

Diff Detail

Event Timeline

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