This is an archive of the discontinued LLVM Phabricator instance.

Stricter use-after-dtor detection for trivial members.
ClosedPublic

Authored by eugenis on Feb 11 2022, 3:14 PM.

Details

Summary

Poison trivial class members one-by-one in the reverse order of their
construction, instead of all-at-once at the very end.

For example, in the following code access to x from ~B will
produce an undefined value.

struct A {

struct B b;
int x;

};

Diff Detail

Event Timeline

eugenis requested review of this revision.Feb 11 2022, 3:14 PM
eugenis created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2022, 3:14 PM
kda accepted this revision.Feb 25 2022, 11:59 AM

LGTM

This revision is now accepted and ready to land.Feb 25 2022, 11:59 AM
vitalybuka accepted this revision.Mar 16 2022, 5:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2022, 5:53 PM
This revision was landed with ongoing or failed builds.Mar 16 2022, 6:21 PM
This revision was automatically updated to reflect the committed changes.