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

an empty vector.  This speeds up llc slightly.

llvm-svn: 40983
This commit is contained in:
Chris Lattner 2007-08-10 06:54:38 +00:00
parent 2377206923
commit b21e76ecb1
1 changed files with 2 additions and 1 deletions

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) {