diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-15 18:04:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-15 18:04:16 +0000 |
commit | d8a947e233a616b2f7d053e912bdb3f20e2c09a6 (patch) | |
tree | bc274bfa362cc894d4d9961e47afb738250f4fbf /include/Support/SCCIterator.h | |
parent | 6559bb96a9901af21c6037675f9508373773bd35 (diff) | |
download | llvm-d8a947e233a616b2f7d053e912bdb3f20e2c09a6.tar.gz llvm-d8a947e233a616b2f7d053e912bdb3f20e2c09a6.tar.bz2 llvm-d8a947e233a616b2f7d053e912bdb3f20e2c09a6.tar.xz |
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/SCCIterator.h')
-rw-r--r-- | include/Support/SCCIterator.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/Support/SCCIterator.h b/include/Support/SCCIterator.h index a65994871a..42d4bcb551 100644 --- a/include/Support/SCCIterator.h +++ b/include/Support/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; |