[PATCH] D77601: Make SmallVector assert if it cannot grow.

David Tellenbach via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 09:45:09 PDT 2020


tellenbach added inline comments.


================
Comment at: llvm/include/llvm/ADT/SmallVector.h:49
   /// on POD-like data types and is out of line to reduce code duplication.
+  /// This function will fatal error if it cannot increase capacity.
   void grow_pod(void *FirstEl, size_t MinCapacity, size_t TSize);
----------------
Here is some word missing: `This function will report a fatal error if it cannot increase capactity.`?


================
Comment at: llvm/lib/Support/SmallVector.cpp:42
 /// on POD-like datatypes and is out of line to reduce code duplication.
+/// This function will fatal error if it cannot increase capacity.
 void SmallVectorBase::grow_pod(void *FirstEl, size_t MinCapacity,
----------------
Same here: A word is missing.



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77601





More information about the llvm-commits mailing list