Skip to content

Commit 5209398

Browse files
committed
Use countPopulation
1 parent 0e673f7 commit 5209398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/ABI/GenericContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ class TrailingGenericContextObjects<TargetSelf<Runtime>,
696696
if (!asSelf()->hasConditionalInvertedProtocols())
697697
return 0;
698698

699-
return __builtin_popcount(getConditionalInvertedProtocols().rawBits());
699+
return countPopulation(getConditionalInvertedProtocols().rawBits());
700700
}
701701

702702
size_t numTrailingObjects(

0 commit comments

Comments
 (0)