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 b6534b2 commit 77cad0bCopy full SHA for 77cad0b
llvm/include/llvm/Support/Alignment.h
@@ -183,7 +183,8 @@ inline uint64_t alignTo(uint64_t Size, MaybeAlign A) {
183
/// Aligns `Addr` to `Alignment` bytes, rounding up.
184
inline uintptr_t alignAddr(const void *Addr, Align Alignment) {
185
uintptr_t ArithAddr = reinterpret_cast<uintptr_t>(Addr);
186
- assert(ArithAddr + Alignment.value() - 1 >= ArithAddr && "Overflow");
+ assert(static_cast<uintptr_t>(ArithAddr + Alignment.value() - 1) >=
187
+ ArithAddr && "Overflow");
188
return alignTo(ArithAddr, Alignment);
189
}
190
0 commit comments