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 17999f0 commit 0f5a785Copy full SHA for 0f5a785
lld/ELF/Symbols.h
@@ -343,7 +343,7 @@ class Symbol {
343
flags.fetch_or(bits, std::memory_order_relaxed);
344
}
345
bool hasFlag(uint16_t bit) const {
346
- assert(bit && (bit & (bit - 1)) == 0 && "bit must be a power of 2");
+ assert(llvm::has_single_bit(bit) && "bit must be a power of 2");
347
return flags.load(std::memory_order_relaxed) & bit;
348
349
0 commit comments