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:
Chris Lattner 2002-10-22 23:34:11 +00:00
parent 1eeac6612b
commit 0ceeb42c97
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
{
unsigned int IGNodeListSize = IG.getIGNodeList().size();
double MinSpillCost;
double MinSpillCost = 0;
IGNode *MinCostIGNode = NULL;
bool isFirstNode = true;

View File

@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
{
unsigned int IGNodeListSize = IG.getIGNodeList().size();
double MinSpillCost;
double MinSpillCost = 0;
IGNode *MinCostIGNode = NULL;
bool isFirstNode = true;

View File

@ -158,7 +158,7 @@ static bool PeepholeOptimizeAddCast(BasicBlock *BB, BasicBlock::iterator &BI,
Value *AddOp1, CastInst *AddOp2) {
const CompositeType *CompTy;
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()))) {
SrcPtr = AddOp1; // Handle the first case...