This is an archive of the discontinued LLVM Phabricator instance.

DebugInfo: Disable ctor homing for types with only deleted (non copy/move) ctors
ClosedPublic

Authored by dblaikie on Feb 27 2023, 4:56 PM.

Details

Summary

Such a type is never going to have a ctor home, and may be used for type
punning or other ways of creating objects.

May be a more generally acceptable solution in some cases compared to
attributing with [[clang::standalone_debug]].

Diff Detail

Event Timeline

dblaikie created this revision.Feb 27 2023, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 4:56 PM
dblaikie requested review of this revision.Feb 27 2023, 4:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 4:56 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
akhuang accepted this revision.Feb 27 2023, 5:08 PM

Thanks for adding this!

This revision is now accepted and ready to land.Feb 27 2023, 5:08 PM
This revision was landed with ongoing or failed builds.Feb 27 2023, 5:25 PM
This revision was automatically updated to reflect the committed changes.