Skip to content

Commit c359d97

Browse files
Merge pull request #11128 from swiftlang/jepa-stable2
[stable/21.x] Fix windows build failures with MSVC
2 parents 8f10bf3 + 6a87309 commit c359d97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class LangOptionsBase {
461461
};
462462

463463
/* TODO(BoundsSafety) Deprecate the flag */
464-
enum BoundsSafetyNewChecks : uint8_t {
464+
enum BoundsSafetyNewChecks : unsigned {
465465
BS_CHK_None = 0,
466466

467467
BS_CHK_AccessSize = 1 << 0, // rdar://72252593

clang/unittests/Tooling/BoundsSafetyBringupMissingChecks.cpp

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

0 commit comments

Comments
 (0)