mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Ensure definate initialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
|
|||||||
{
|
{
|
||||||
|
|
||||||
unsigned int IGNodeListSize = IG.getIGNodeList().size();
|
unsigned int IGNodeListSize = IG.getIGNodeList().size();
|
||||||
double MinSpillCost;
|
double MinSpillCost = 0;
|
||||||
IGNode *MinCostIGNode = NULL;
|
IGNode *MinCostIGNode = NULL;
|
||||||
bool isFirstNode = true;
|
bool isFirstNode = true;
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
|
|||||||
{
|
{
|
||||||
|
|
||||||
unsigned int IGNodeListSize = IG.getIGNodeList().size();
|
unsigned int IGNodeListSize = IG.getIGNodeList().size();
|
||||||
double MinSpillCost;
|
double MinSpillCost = 0;
|
||||||
IGNode *MinCostIGNode = NULL;
|
IGNode *MinCostIGNode = NULL;
|
||||||
bool isFirstNode = true;
|
bool isFirstNode = true;
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ static bool PeepholeOptimizeAddCast(BasicBlock *BB, BasicBlock::iterator &BI,
|
|||||||
Value *AddOp1, CastInst *AddOp2) {
|
Value *AddOp1, CastInst *AddOp2) {
|
||||||
const CompositeType *CompTy;
|
const CompositeType *CompTy;
|
||||||
Value *OffsetVal = AddOp2->getOperand(0);
|
Value *OffsetVal = AddOp2->getOperand(0);
|
||||||
Value *SrcPtr; // Of type pointer to struct...
|
Value *SrcPtr = 0; // Of type pointer to struct...
|
||||||
|
|
||||||
if ((CompTy = getPointedToComposite(AddOp1->getType()))) {
|
if ((CompTy = getPointedToComposite(AddOp1->getType()))) {
|
||||||
SrcPtr = AddOp1; // Handle the first case...
|
SrcPtr = AddOp1; // Handle the first case...
|
||||||
|
Reference in New Issue
Block a user