Skip to content

Commit 35b08aa

Browse files
authored
Merge pull request #11089 from hjyamauchi/winfix
Use llvm::popcount instead of __builtin_popcount.
2 parents b7b6466 + bbee048 commit 35b08aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/Tooling/BoundsSafetyBringupMissingChecks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ TEST(BoundsSafetyBringUpMissingChecks, ChkPairValidMask) {
181181
static_assert(LangOptions::BS_CHK_None == 0, "expected 0");
182182
for (size_t Idx = 0; Idx < NumChkDescs; ++Idx) {
183183
unsigned CurrentMask = CheckKinds[Idx].Mask;
184-
EXPECT_EQ(__builtin_popcount(CurrentMask), 1); // Check is a power of 2
184+
EXPECT_EQ(llvm::popcount(CurrentMask), 1); // Check is a power of 2
185185
EXPECT_EQ(SeenBits & CurrentMask,
186186
0U); // Doesn't overlap with a previously seen value
187187
SeenBits |= CurrentMask;

0 commit comments

Comments
 (0)