[PATCH] D79123: [Debuginfo][NFC] findRecursively: Replace std::vector by SmallVector

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 01:13:09 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0e6d7f602428: [Debuginfo][NFC] findRecursively: Replace std::vector by SmallVector (authored by avl).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79123

Files:
  llvm/lib/DebugInfo/DWARF/DWARFDie.cpp


Index: llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
===================================================================
--- llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -356,7 +356,7 @@
 
 Optional<DWARFFormValue>
 DWARFDie::findRecursively(ArrayRef<dwarf::Attribute> Attrs) const {
-  std::vector<DWARFDie> Worklist;
+  SmallVector<DWARFDie, 3> Worklist;
   Worklist.push_back(*this);
 
   // Keep track if DIEs already seen to prevent infinite recursion.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79123.261144.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/d1c84b2a/attachment.bin>


More information about the llvm-commits mailing list