1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

disable SmallVectorImpl's copy constructor. This prevents a class

of base class slicing bugs reported on irc

llvm-svn: 106028
This commit is contained in:
Chris Lattner 2010-06-15 18:59:43 +00:00
parent 81b428d9ad
commit 7420a283cf

View File

@ -269,6 +269,8 @@ public:
template <typename T>
class SmallVectorImpl : public SmallVectorTemplateBase<T, isPodLike<T>::value> {
typedef SmallVectorTemplateBase<T, isPodLike<T>::value > SuperClass;
SmallVectorImpl(const SmallVectorImpl&); // DISABLED.
public:
typedef typename SuperClass::iterator iterator;
typedef typename SuperClass::size_type size_type;