mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6559bb96a9
commit
d8a947e233
@ -56,8 +56,6 @@ struct SCC: public std::vector<typename GT::NodeType*> {
|
|||||||
// reverse topological order of the SCC DAG.
|
// reverse topological order of the SCC DAG.
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
const unsigned long MAXLONG = (1 << (8 * sizeof(unsigned long) - 1));
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
|
Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
|
||||||
Statistic<> MaxSCCSize("MaxSCCSize", "Size of largest Strongly Connected Component");
|
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 {
|
do {
|
||||||
CurrentSCC.push_back(SCCNodeStack.top());
|
CurrentSCC.push_back(SCCNodeStack.top());
|
||||||
SCCNodeStack.pop();
|
SCCNodeStack.pop();
|
||||||
nodeVisitNumbers[CurrentSCC.back()] = MAXLONG;
|
nodeVisitNumbers[CurrentSCC.back()] = ~0UL;
|
||||||
} while (CurrentSCC.back() != visitingN);
|
} while (CurrentSCC.back() != visitingN);
|
||||||
|
|
||||||
++NumSCCs;
|
++NumSCCs;
|
||||||
|
@ -56,8 +56,6 @@ struct SCC: public std::vector<typename GT::NodeType*> {
|
|||||||
// reverse topological order of the SCC DAG.
|
// reverse topological order of the SCC DAG.
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
const unsigned long MAXLONG = (1 << (8 * sizeof(unsigned long) - 1));
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
|
Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
|
||||||
Statistic<> MaxSCCSize("MaxSCCSize", "Size of largest Strongly Connected Component");
|
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 {
|
do {
|
||||||
CurrentSCC.push_back(SCCNodeStack.top());
|
CurrentSCC.push_back(SCCNodeStack.top());
|
||||||
SCCNodeStack.pop();
|
SCCNodeStack.pop();
|
||||||
nodeVisitNumbers[CurrentSCC.back()] = MAXLONG;
|
nodeVisitNumbers[CurrentSCC.back()] = ~0UL;
|
||||||
} while (CurrentSCC.back() != visitingN);
|
} while (CurrentSCC.back() != visitingN);
|
||||||
|
|
||||||
++NumSCCs;
|
++NumSCCs;
|
||||||
|
Loading…
Reference in New Issue
Block a user