diff options
-rw-r--r-- | include/llvm/ADT/SmallPtrSet.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 1db2945877..f77eb7d8ca 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -187,8 +187,7 @@ struct NextPowerOfTwoH<N, false> { enum { // We could just use NextVal = N+1, but this converges faster. N|(N-1) sets // the right-most zero bits to one all at once, e.g. 0b0011000 -> 0b0011111. - NextVal = (N|(N-1)) + 1, - Val = NextPowerOfTwo<NextVal>::Val + Val = NextPowerOfTwo<(N|(N-1)) + 1>::Val }; }; |