mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
Ensure definate initialization
llvm-svn: 4263
This commit is contained in:
parent
591d2954e7
commit
b8ffbe6966
@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
|
||||
{
|
||||
|
||||
unsigned int IGNodeListSize = IG.getIGNodeList().size();
|
||||
double MinSpillCost;
|
||||
double MinSpillCost = 0;
|
||||
IGNode *MinCostIGNode = NULL;
|
||||
bool isFirstNode = true;
|
||||
|
||||
|
@ -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...
|
||||
|
Loading…
x
Reference in New Issue
Block a user