Bring the return value of SmallVector::insert in line with std::vector::insert.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 17 Jun 2012 12:46:13 +0000 (12:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 17 Jun 2012 12:46:13 +0000 (12:46 +0000)
commitd45f7b6b5dd36b4732dff82ab7c8a856a7b36ae0
treee0a6d00ad7a21a36ffa447e962cbe57479cf1d84
parentb4bec53f367614132290425cb4805a2d5696153a
Bring the return value of SmallVector::insert in line with std::vector::insert.

It always returns the iterator for the first inserted element, or the passed in
iterator if the inserted range was empty. Flesh out the unit test more and fix
all the cases it uncovered so far.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158645 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h
unittests/ADT/SmallVectorTest.cpp