Ensure definate initialization

llvm-svn: 4263
This commit is contained in:
Chris Lattner
2002-10-22 23:34:11 +00:00
parent d3fcf42efc
commit 5ae3bd630d
2 changed files with 2 additions and 2 deletions

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...