projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de3b7f
)
Fix PR1234 by working around a compiler bug.
author
Chris Lattner
<sabre@nondot.org>
Fri, 2 Mar 2007 18:16:29 +0000
(18:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 2 Mar 2007 18:16:29 +0000
(18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34845
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SmallPtrSet.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallPtrSet.h
b/include/llvm/ADT/SmallPtrSet.h
index 1db2945877a2e6c8b94fd795ae1b4fe793ef00fc..f77eb7d8ca71009b8d68e7e6b955c282726ceae9 100644
(file)
--- 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
};
};