Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size.