disable SmallVectorImpl's copy constructor. This prevents a class
authorChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2010 18:59:43 +0000 (18:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2010 18:59:43 +0000 (18:59 +0000)
of base class slicing bugs reported on irc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106028 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallVector.h

index b966864515ef0c4f9062482af3255f5d433037c1..fa61d207bd305df7fdb7cb12be2fc252acd32297 100644 (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;