We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289c066 commit dea8217Copy full SHA for dea8217
llvm/include/llvm/ADT/SmallPtrSet.h
@@ -80,7 +80,7 @@ class SmallPtrSetImplBase : public DebugEpochBase {
80
explicit SmallPtrSetImplBase(const void **SmallStorage, unsigned SmallSize)
81
: CurArray(SmallStorage), CurArraySize(SmallSize), NumNonEmpty(0),
82
NumTombstones(0), IsSmall(true) {
83
- assert(SmallSize && (SmallSize & (SmallSize-1)) == 0 &&
+ assert(llvm::has_single_bit(SmallSize) &&
84
"Initial size must be a power of two!");
85
}
86
0 commit comments