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 a2cfc6b commit 287048dCopy full SHA for 287048d
llvm/include/llvm/Support/MathExtras.h
@@ -384,8 +384,8 @@ inline uint64_t alignToPowerOf2(uint64_t Value, uint64_t Align) {
384
"Align must be a power of 2");
385
// Replace unary minus to avoid compilation error on Windows:
386
// "unary minus operator applied to unsigned type, result still unsigned"
387
- uint64_t negAlign = (~Align) + 1;
388
- return (Value + Align - 1) & negAlign;
+ uint64_t NegAlign = (~Align) + 1;
+ return (Value + Align - 1) & NegAlign;
389
}
390
391
/// If non-zero \p Skew is specified, the return value will be a minimal integer
0 commit comments