Use SmallVectorImpl& instead of SmallVector& to avoid needlessly respecifying the small vector size.