This is an archive of the discontinued LLVM Phabricator instance.

[Analysis] Avoid virtual dtor. NFC.
ClosedPublic

Authored by Meinersbur on May 17 2022, 12:22 PM.

Details

Summary

Replace virtual destructor by a protected non-virtual one. Additionally also making derived structs as virtual avoids the warning from reappearing.

Also see the mailing list discussion: https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20220516/1038290.html

Diff Detail

Event Timeline

Meinersbur created this revision.May 17 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2022, 12:22 PM
Meinersbur requested review of this revision.May 17 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2022, 12:22 PM
dblaikie accepted this revision.May 17 2022, 1:34 PM

Awesome, thanks!

This revision is now accepted and ready to land.May 17 2022, 1:34 PM
YangKeao accepted this revision.May 18 2022, 3:17 AM

Thanks.

This revision was landed with ongoing or failed builds.May 18 2022, 3:43 PM
This revision was automatically updated to reflect the committed changes.