This is an archive of the discontinued LLVM Phabricator instance.

Do not touch get() calls on 'this' object.
ClosedPublic

Authored by sbenza on Apr 29 2014, 6:32 AM.

Details

Summary

These calls are part of the implementation of the smart pointer itself
and chaning it is likely to be wrong.
Example:

T& operator*() const { return *get(); }

Diff Detail

Event Timeline

sbenza updated this revision to Diff 8917.Apr 29 2014, 6:32 AM
sbenza retitled this revision from to Do not touch get() calls on 'this' object..
sbenza updated this object.
sbenza edited the test plan for this revision. (Show Details)
sbenza added a reviewer: djasper.
sbenza added a subscriber: Unknown Object (MLST).
djasper accepted this revision.Apr 29 2014, 6:36 AM
djasper edited edge metadata.

Makes sense.

This revision is now accepted and ready to land.Apr 29 2014, 6:36 AM
sbenza closed this revision.Apr 29 2014, 6:53 AM

Submitted as r207525