[PATCH] D91744: ADT: Add assertions to SmallVector::insert, etc., for reference invalidation

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 15:59:01 PST 2020


dexonsmith updated this revision to Diff 306247.
dexonsmith edited the summary of this revision.
dexonsmith added a comment.

Updates:

- Per @mehdi_amini's suggestion, check all arguments of `emplace_back`.
- Check ranges in the iterator range versions of `assign`, `append`, and `insert`.


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

https://reviews.llvm.org/D91744

Files:
  llvm/include/llvm/ADT/SmallVector.h
  llvm/unittests/ADT/SmallVectorTest.cpp
  llvm/utils/TableGen/CodeGenSchedule.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91744.306247.patch
Type: text/x-patch
Size: 14229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201118/56f0846d/attachment-0001.bin>


More information about the llvm-commits mailing list