forked from OSchip/llvm-project
Fix PR1234 by working around a compiler bug.
llvm-svn: 34845
This commit is contained in:
parent
155ede21e0
commit
c3b68788bb
|
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue