Fix PR1234 by working around a compiler bug.

llvm-svn: 34845
This commit is contained in:
Chris Lattner 2007-03-02 18:16:29 +00:00
parent 155ede21e0
commit c3b68788bb
1 changed files with 1 additions and 2 deletions

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