Add isPositive for symmetry with isNegative.
[oota-llvm.git] / include / llvm / ADT / SmallPtrSet.h
index 1db2945877a2e6c8b94fd795ae1b4fe793ef00fc..f77eb7d8ca71009b8d68e7e6b955c282726ceae9 100644 (file)
@@ -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
   };
 };