Reapply r229142 with some enable_if magic to avoid memcpying between differing types.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Feb 2015 20:45:14 +0000 (20:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Feb 2015 20:45:14 +0000 (20:45 +0000)
commitbad5a46c05b290b64f764ba4a4eaedc6c8699f25
treecf8896b3e0c15e480494bfea6668b3582f25caa0
parent14a92711ce08158e8e05295b065ed389e679193f
Reapply r229142 with some enable_if magic to avoid memcpying between differing types.

Original commit message:
SmallVector: Resolve a long-standing fixme by using the existing unitialized_copy dispatch.

This makes append() use memcpy for trivially copyable types.

llvm-svn: 229149
llvm/include/llvm/ADT/SmallVector.h