[llvm-commits] CVS: llvm/include/Support/TarjanSCCIterator.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 15 12:05:00 PST 2002
Changes in directory llvm/include/Support:
TarjanSCCIterator.h updated: 1.2 -> 1.3
---
Log message:
Fix warning
---
Diffs of the changes:
Index: llvm/include/Support/TarjanSCCIterator.h
diff -u llvm/include/Support/TarjanSCCIterator.h:1.2 llvm/include/Support/TarjanSCCIterator.h:1.3
--- llvm/include/Support/TarjanSCCIterator.h:1.2 Sun Nov 10 17:46:31 2002
+++ llvm/include/Support/TarjanSCCIterator.h Fri Nov 15 12:04:16 2002
@@ -56,8 +56,6 @@
// reverse topological order of the SCC DAG.
//--------------------------------------------------------------------------
-const unsigned long MAXLONG = (1 << (8 * sizeof(unsigned long) - 1));
-
namespace {
Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
Statistic<> MaxSCCSize("MaxSCCSize", "Size of largest Strongly Connected Component");
@@ -152,7 +150,7 @@
do {
CurrentSCC.push_back(SCCNodeStack.top());
SCCNodeStack.pop();
- nodeVisitNumbers[CurrentSCC.back()] = MAXLONG;
+ nodeVisitNumbers[CurrentSCC.back()] = ~0UL;
} while (CurrentSCC.back() != visitingN);
++NumSCCs;
More information about the llvm-commits
mailing list