aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/SCCIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/SCCIterator.h')
-rw-r--r--include/llvm/ADT/SCCIterator.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h
index a659948..42d4bcb 100644
--- a/include/llvm/ADT/SCCIterator.h
+++ b/include/llvm/ADT/SCCIterator.h
@@ -56,8 +56,6 @@ struct SCC: public std::vector<typename GT::NodeType*> {
// 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 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
do {
CurrentSCC.push_back(SCCNodeStack.top());
SCCNodeStack.pop();
- nodeVisitNumbers[CurrentSCC.back()] = MAXLONG;
+ nodeVisitNumbers[CurrentSCC.back()] = ~0UL;
} while (CurrentSCC.back() != visitingN);
++NumSCCs;