This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove redundant CalculateSmallVectorDefaultInlinedElements usage from to_vector utility
ClosedPublic

Authored by yurai007 on Jul 29 2022, 6:42 AM.

Details

Summary

CalculateSmallVectorDefaultInlinedElements<..>::value is already used as default value for second template parameter in SmallVector class declaration.
There is no need to pass it explicitly in to_vector.

Extracted from: https://reviews.llvm.org/D129781

Diff Detail

Event Timeline

yurai007 created this revision.Jul 29 2022, 6:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2022, 6:42 AM
yurai007 requested review of this revision.Jul 29 2022, 6:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2022, 6:42 AM
This revision is now accepted and ready to land.Jul 29 2022, 6:47 AM
This revision was landed with ongoing or failed builds.Jul 31 2022, 2:48 AM
This revision was automatically updated to reflect the committed changes.