small speedup in the case where a smallvector is default ctor'd from

an empty vector.  This speeds up llc slightly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-08-10 06:54:38 +00:00
parent 76d708b76f
commit 02cee38647

View File

@ -455,7 +455,8 @@ public:
}
SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(NumTsAvailable) {
operator=(RHS);
if (!RHS.empty())
operator=(RHS);
}
const SmallVector &operator=(const SmallVector &RHS) {