[PATCH] D130361: [NFC] Use more appropriate SmallVectorImpl::append call in std::initializer_list SmallVector constructor

Dawid Jurczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 30 01:14:12 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG65053fbc0d46: [NFC] Use more appropriate SmallVectorImpl::append call in stdā€¦ (authored by yurai007).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130361/new/

https://reviews.llvm.org/D130361

Files:
  llvm/include/llvm/ADT/SmallVector.h


Index: llvm/include/llvm/ADT/SmallVector.h
===================================================================
--- llvm/include/llvm/ADT/SmallVector.h
+++ llvm/include/llvm/ADT/SmallVector.h
@@ -1212,7 +1212,7 @@
   }
 
   SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
-    this->assign(IL);
+    this->append(IL);
   }
 
   SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130361.448783.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220730/b4ffb65e/attachment.bin>


More information about the llvm-commits mailing list