SmallPtrSet::find -> SmallPtrSet::count
The latter is more readable and more efficient. While there clean up some double lookups. NFCI.
Loading
Please sign in to comment
The latter is more readable and more efficient. While there clean up some double lookups. NFCI.