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)
commitf7803d51f4d147fc2af20e8b2451c0479495dd5c
treec7c3888a09aa693abfeed3aa28fe43d42f0fade2
parent802f6b37e516adc305d8989f714716006de05615
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.

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