================ @@ -887,8 +921,8 @@ class SmallVectorImpl : public SmallVectorTemplateBase<T> { this->assertSafeToAddRange(From, To); size_t NumToInsert = std::distance(From, To); ---------------- kuhar wrote: Unless I misread the code... https://github.com/llvm/llvm-project/pull/136365