mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Added an assertion since it seems like AdjList returns an errornous size in method
IGNode::pushOnStack(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,9 +15,14 @@ IGNode::IGNode(LiveRange *const PLR, unsigned int Ind): Index(Ind),
|
|||||||
void IGNode::pushOnStack() // sets on to stack and
|
void IGNode::pushOnStack() // sets on to stack and
|
||||||
{ // reduce the degree of neighbors
|
{ // reduce the degree of neighbors
|
||||||
OnStack = true;
|
OnStack = true;
|
||||||
unsigned int neighs = AdjList.size();
|
int neighs = AdjList.size();
|
||||||
|
|
||||||
for(unsigned int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
|
if( neighs < 0) {
|
||||||
|
cout << "\nAdj List size = " << neighs;
|
||||||
|
assert(0 && "Invalid adj list size");
|
||||||
|
}
|
||||||
|
|
||||||
|
for(int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,9 +15,14 @@ IGNode::IGNode(LiveRange *const PLR, unsigned int Ind): Index(Ind),
|
|||||||
void IGNode::pushOnStack() // sets on to stack and
|
void IGNode::pushOnStack() // sets on to stack and
|
||||||
{ // reduce the degree of neighbors
|
{ // reduce the degree of neighbors
|
||||||
OnStack = true;
|
OnStack = true;
|
||||||
unsigned int neighs = AdjList.size();
|
int neighs = AdjList.size();
|
||||||
|
|
||||||
for(unsigned int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
|
if( neighs < 0) {
|
||||||
|
cout << "\nAdj List size = " << neighs;
|
||||||
|
assert(0 && "Invalid adj list size");
|
||||||
|
}
|
||||||
|
|
||||||
|
for(int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user