[llvm-commits] [llvm] r106028 - /llvm/trunk/include/llvm/ADT/SmallVector.h
Chris Lattner
sabre at nondot.org
Tue Jun 15 11:59:43 PDT 2010
Author: lattner
Date: Tue Jun 15 13:59:43 2010
New Revision: 106028
URL: http://llvm.org/viewvc/llvm-project?rev=106028&view=rev
Log:
disable SmallVectorImpl's copy constructor. This prevents a class
of base class slicing bugs reported on irc
Modified:
llvm/trunk/include/llvm/ADT/SmallVector.h
Modified: llvm/trunk/include/llvm/ADT/SmallVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallVector.h?rev=106028&r1=106027&r2=106028&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Tue Jun 15 13:59:43 2010
@@ -269,6 +269,8 @@
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;
More information about the llvm-commits
mailing list