This is an archive of the discontinued LLVM Phabricator instance.

Mark shared_ptr::__create_with_control_block as noexcept.
ClosedPublic

Authored by zoecarver on May 16 2020, 2:56 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG21d4050e2c99: Mark shared_ptr::__create_with_control_block as noexcept.
Summary

The default constructor for shared_ptr and shared_ptr::__enable_weak_this are both noexcept so, shared_ptr::__create_with_control_block can also be marked noexcept.

Diff Detail

Event Timeline

zoecarver created this revision.May 16 2020, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2020, 2:56 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
zoecarver edited the summary of this revision. (Show Details)May 16 2020, 2:57 PM
ldionne accepted this revision.May 19 2020, 5:58 AM
This revision is now accepted and ready to land.May 19 2020, 5:58 AM
This revision was automatically updated to reflect the committed changes.