This is an archive of the discontinued LLVM Phabricator instance.

Make ScopedDiagnosticHandler destructor virtual (NFC)
AcceptedPublic

Authored by mehdi_amini on Nov 27 2022, 10:52 AM.

Details

Summary

This will allow to support polymorphic destruction.

Fixes #59212

Diff Detail

Event Timeline

mehdi_amini created this revision.Nov 27 2022, 10:52 AM
mehdi_amini requested review of this revision.Nov 27 2022, 10:52 AM

Thanks for having a look. I left a note on the issue about possibly doing this differently. WDYT? https://github.com/llvm/llvm-project/issues/59212#issuecomment-1328315420

stellaraccident accepted this revision.Nov 27 2022, 2:44 PM

(change lgtm and I think we may want to rework this API at some point)

This revision is now accepted and ready to land.Nov 27 2022, 2:44 PM