diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 1db2945877a..f77eb7d8ca7 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -187,8 +187,7 @@ struct NextPowerOfTwoH { 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::Val + Val = NextPowerOfTwo<(N|(N-1)) + 1>::Val }; };