Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/LangOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class LangOptionsBase {
};

/* TODO(BoundsSafety) Deprecate the flag */
enum BoundsSafetyNewChecks {
enum BoundsSafetyNewChecks : unsigned {
BS_CHK_None = 0,

BS_CHK_AccessSize = 1 << 0, // rdar://72252593
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ TEST(BoundsSafetyBringUpMissingChecks, ChkPairValidMask) {
static_assert(LangOptions::BS_CHK_None == 0, "expected 0");
for (size_t Idx = 0; Idx < NumChkDescs; ++Idx) {
unsigned CurrentMask = CheckKinds[Idx].Mask;
EXPECT_EQ(__builtin_popcount(CurrentMask), 1); // Check is a power of 2
EXPECT_EQ(llvm::popcount(CurrentMask), 1); // Check is a power of 2
EXPECT_EQ(SeenBits & CurrentMask,
0U); // Doesn't overlap with a previously seen value
SeenBits |= CurrentMask;
Expand Down