[llvm-commits] CVS: llvm/include/llvm/ADT/SmallPtrSet.h
Chris Lattner
sabre at nondot.org
Fri Mar 2 10:16:52 PST 2007
Changes in directory llvm/include/llvm/ADT:
SmallPtrSet.h updated: 1.7 -> 1.8
---
Log message:
Fix PR1234: http://llvm.org/PR1234 by working around a compiler bug.
---
Diffs of the changes: (+1 -2)
SmallPtrSet.h | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/include/llvm/ADT/SmallPtrSet.h
diff -u llvm/include/llvm/ADT/SmallPtrSet.h:1.7 llvm/include/llvm/ADT/SmallPtrSet.h:1.8
--- llvm/include/llvm/ADT/SmallPtrSet.h:1.7 Tue Feb 6 19:11:24 2007
+++ llvm/include/llvm/ADT/SmallPtrSet.h Fri Mar 2 12:16:29 2007
@@ -187,8 +187,7 @@
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
};
};
More information about the llvm-commits
mailing list