This is an archive of the discontinued LLVM Phabricator instance.

[clang] fix missing initialization of original number of expansions
ClosedPublic

Authored by mizvekov on Aug 12 2022, 12:59 PM.

Details

Summary

When expanding undeclared function parameters, we should initialize
the original number of expansions, if known, before trying to expand
them, otherwise a length mismatch with an outer pack might not be
diagnosed.

Fixes PR56094.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Diff Detail

Event Timeline

mizvekov created this revision.Aug 12 2022, 12:59 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 12 2022, 12:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mizvekov requested review of this revision.Aug 12 2022, 12:59 PM
mizvekov retitled this revision from WIP: [clang] fix missing initialization of original number of expansions to [clang] fix missing initialization of original number of expansions.Aug 12 2022, 2:31 PM
mizvekov edited the summary of this revision. (Show Details)
mizvekov added reviewers: rsmith, Restricted Project, shafik, aaron.ballman, erichkeane.

This looks reasonable to me, but I leave it to others to do the final sign-off. Please be sure to add a release note for the fix though.

erichkeane accepted this revision.Aug 15 2022, 6:00 AM
This revision is now accepted and ready to land.Aug 15 2022, 6:00 AM