This is an archive of the discontinued LLVM Phabricator instance.

ADT: Share an implementation for single-element insert in SmallVector, NFC
ClosedPublic

Authored by dexonsmith on Nov 17 2020, 6:13 PM.

Details

Summary

Factor out SmallVectorImple::insert_one_impl, a common implementation
for insert(iterator, T&&) and insert(iterator, T const&). This is
just a clean up and has no functionality change.

Diff Detail

Event Timeline

dexonsmith created this revision.Nov 17 2020, 6:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2020, 6:13 PM
Herald added a subscriber: ributzka. · View Herald Transcript
dexonsmith requested review of this revision.Nov 17 2020, 6:13 PM
dblaikie accepted this revision.Nov 17 2020, 6:53 PM

Looks good

This revision is now accepted and ready to land.Nov 17 2020, 6:53 PM