This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove redundant assertion in std::span::subspan
ClosedPublic

Authored by ldionne on Apr 11 2023, 9:56 AM.

Details

Reviewers
EricWF
Group Reviewers
Restricted Project
Commits
rG3865e084b2ef: [libc++] Remove redundant assertion in std::span::subspan
Summary

That is already checked later in the function as __count <= size() - __offset.

rdar://107884996

Diff Detail

Event Timeline

ldionne created this revision.Apr 11 2023, 9:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 9:56 AM
ldionne requested review of this revision.Apr 11 2023, 9:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 9:56 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
EricWF accepted this revision.Apr 11 2023, 11:02 AM
This revision is now accepted and ready to land.Apr 11 2023, 11:02 AM

Failures are the unrelated sanitizer issues, shipping.

This revision was landed with ongoing or failed builds.Apr 14 2023, 8:20 AM
This revision was automatically updated to reflect the committed changes.