From: Chris Lattner Date: Fri, 2 Mar 2007 18:16:29 +0000 (+0000) Subject: Fix PR1234 by working around a compiler bug. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=155b6220f79ca2dbd47193c1c061e6e129b977ab;p=oota-llvm.git 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 --- 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 }; };