This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Fix static code analysis concerns
ClosedPublic

Authored by Manna on Oct 5 2022, 10:44 AM.

Details

Summary

ProcessMemberDtor(), ProcessDeleteDtor(), and ProcessAutomaticObjDtor():
Fix static analyzer warnings with suspicious dereference of pointer 'Pred' in function call before NULL checks - NFCI

Diff Detail

Event Timeline

Manna created this revision.Oct 5 2022, 10:44 AM
Herald added a project: Restricted Project. · View Herald Transcript
Manna requested review of this revision.Oct 5 2022, 10:44 AM
xazax.hun accepted this revision.Oct 5 2022, 10:51 AM
This revision is now accepted and ready to land.Oct 5 2022, 10:51 AM
isuckatcs accepted this revision.Oct 5 2022, 11:40 AM
Manna added a comment.Oct 6 2022, 1:39 PM

Thank you for the reviews!

Manna added a comment.Oct 7 2022, 7:01 AM

@Gábor Horváth or @Domján Dániel, could you please commit the patch?

Thanks,
Soumi Manna
Email address: soumi.manna@intel.com

This revision was landed with ongoing or failed builds.Oct 7 2022, 7:58 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2022, 7:58 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript