This is an archive of the discontinued LLVM Phabricator instance.

[Lifetime] Add lifetime markers for C++ lifetime-extended temporaries
AbandonedPublic

Authored by timshen on May 4 2016, 12:41 PM.

Details

Reviewers
rsmith
Summary

Use pushCleanupAfterFullExpr to add lifetime.end markers for
lifetime-extended temporaries, similar to the way destructor calls get
generated.

It does not change the AST representation. It doesn't generate normal temporary
lifetime markers, since normal temporaries appear in substantially different
places, which could be done in a separate patch.

Diff Detail

Event Timeline

timshen updated this revision to Diff 56187.May 4 2016, 12:41 PM
timshen retitled this revision from to [Lifetime] Add lifetime markers for C++ lifetime-extended temporaries.
timshen updated this object.
timshen added a reviewer: rsmith.
timshen added a subscriber: cfe-commits.
timshen planned changes to this revision.May 10 2016, 5:32 PM
timshen abandoned this revision.May 20 2016, 3:38 PM

Abandon this change, since D20498 and D20499 handle all temporaries.