This assertion ensures the input value isn't part of the vector when
growing is required. In such cases the vector will grow and the input
value is invalidated before being read from.
This found 14 failed Tests.
Differential D84293
Add an assertion in SmallVector::push_back() mehdi_amini on Jul 21 2020, 9:43 PM. Authored by
Details
This assertion ensures the input value isn't part of the vector when This found 14 failed Tests.
Diff Detail
Event Timeline
Comment Actions FYI, there's also now https://reviews.llvm.org/D87326. I'd be in favour of landing this patch (with Sean's fix) while we wait for that one. Comment Actions This assert should probably also be used (albeit some in a modified way) for:
As all these functions can grow and invalidate the reference.
|
nit: s/enough/sufficient