Pete Cooper suggested the new API should use ArrayRef instead of SmallVectorImpl...