diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-06 05:11:05 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-06 05:11:05 +0000 |
commit | 04cc49be657c034e3427c452473bcf8e8b6e2583 (patch) | |
tree | 1c7a77f6a3c2664804f03abd7aa2280a9b10da5f /lib/CodeGen/RegAlloc/RegClass.cpp | |
parent | 9576b15fcd384cc1c237ef11a528f4fad319d7ad (diff) |
Bug fix: uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/RegClass.cpp')
-rw-r--r-- | lib/CodeGen/RegAlloc/RegClass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/RegAlloc/RegClass.cpp b/lib/CodeGen/RegAlloc/RegClass.cpp index 9c3e08c294..cb33b9e0fb 100644 --- a/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/lib/CodeGen/RegAlloc/RegClass.cpp @@ -47,7 +47,7 @@ void RegClass::colorAllRegs() void RegClass::pushAllIGNodes() { bool NeedMoreSpills; - IGNode *IGNodeSpill, *IGNode; + IGNode *IGNodeSpill; IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes @@ -70,14 +70,14 @@ void RegClass::pushAllIGNodes() do{ - //get IGNode with min spill cost + //get node with min spill cost IGNodeSpill = getIGNodeWithMinSpillCost(); - // push IGNode on to stack + // push that node on to stack IGNodeStack.push( IGNodeSpill ); - // set OnStack flag and decrement degree of neighs - IGNode->pushOnStack(); + // set its OnStack flag and decrement degree of neighs + IGNodeSpill->pushOnStack(); // now push NON-constrined ones, if any NeedMoreSpills = ! pushUnconstrainedIGNodes(); |