diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-02 18:16:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-02 18:16:29 +0000 |
commit | 155b6220f79ca2dbd47193c1c061e6e129b977ab (patch) | |
tree | 0264aab21253b857e41c44a054130f10b5d657ee /include/llvm/ADT/SmallPtrSet.h | |
parent | 5de3b7f35131b3c17e0b3c711d47ab3fb2c1e9be (diff) | |
download | external_llvm-155b6220f79ca2dbd47193c1c061e6e129b977ab.zip external_llvm-155b6220f79ca2dbd47193c1c061e6e129b977ab.tar.gz external_llvm-155b6220f79ca2dbd47193c1c061e6e129b977ab.tar.bz2 |
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
Diffstat (limited to 'include/llvm/ADT/SmallPtrSet.h')
-rw-r--r-- | include/llvm/ADT/SmallPtrSet.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 1db2945..f77eb7d 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -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 }; }; |