[all-commits] [llvm/llvm-project] e25373: ADT: Share an implementation for single-element in...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Nov 17 21:22:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e2537353e63859a2a36da93fa97cb16275681a23
      https://github.com/llvm/llvm-project/commit/e2537353e63859a2a36da93fa97cb16275681a23
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M llvm/include/llvm/ADT/SmallVector.h

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

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.

Differential Revision: https://reviews.llvm.org/D91674




More information about the All-commits mailing list