Fix PR1234 by working around a compiler bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-03-02 18:16:29 +00:00
parent 5de3b7f351
commit 155b6220f7

View 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
};
};