Use range based for loops to avoid needing to re-mention SmallPtrSet size.