This is an archive of the discontinued LLVM Phabricator instance.

[libc++][format] Fixes invalid usage of m type.
ClosedPublic

Authored by Mordante on Mar 4 2023, 11:03 AM.

Details

Reviewers
ldionne
vitaut
Group Reviewers
Restricted Project
Commits
rG347a65a16493: [libc++][format] Fixes invalid usage of m type.
Summary

The m type in a range formatter may only be used when a pair or a tuple
with two elements is used. This was not correctly validated as reported
in llvm.org/PR60995.

Diff Detail

Event Timeline

Mordante created this revision.Mar 4 2023, 11:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2023, 11:03 AM
Mordante requested review of this revision.Mar 4 2023, 11:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2023, 11:03 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Mar 7 2023, 8:20 AM

Let's cherry-pick this one too.

This revision is now accepted and ready to land.Mar 7 2023, 8:20 AM
This revision was automatically updated to reflect the committed changes.

Thanks for the review!

Let's cherry-pick this one too.

Agreed with both of them, that's why I marked them as a bug ;-)