From 59d52a3dfe90fa119645ee5a4f4c8301ba331f91 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Jun 2010 18:59:43 +0000 Subject: [PATCH] disable SmallVectorImpl's copy constructor. This prevents a class 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index b966864515e..fa61d207bd3 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -269,6 +269,8 @@ public: template class SmallVectorImpl : public SmallVectorTemplateBase::value> { typedef SmallVectorTemplateBase::value > SuperClass; + + SmallVectorImpl(const SmallVectorImpl&); // DISABLED. public: typedef typename SuperClass::iterator iterator; typedef typename SuperClass::size_type size_type; -- 2.34.1