Skip to content

Commit 287048d

Browse files
committed
Update MathExtras.h
1 parent a2cfc6b commit 287048d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/MathExtras.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ inline uint64_t alignToPowerOf2(uint64_t Value, uint64_t Align) {
384384
"Align must be a power of 2");
385385
// Replace unary minus to avoid compilation error on Windows:
386386
// "unary minus operator applied to unsigned type, result still unsigned"
387-
uint64_t negAlign = (~Align) + 1;
388-
return (Value + Align - 1) & negAlign;
387+
uint64_t NegAlign = (~Align) + 1;
388+
return (Value + Align - 1) & NegAlign;
389389
}
390390

391391
/// If non-zero \p Skew is specified, the return value will be a minimal integer

0 commit comments

Comments
 (0)