[llvm-commits] CVS: llvm/lib/Transforms/LevelRaise.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 22 18:35:03 PDT 2002


Changes in directory llvm/lib/Transforms:

LevelRaise.cpp updated: 1.74 -> 1.75

---
Log message:

Ensure definate initialization


---
Diffs of the changes:

Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.74 llvm/lib/Transforms/LevelRaise.cpp:1.75
--- llvm/lib/Transforms/LevelRaise.cpp:1.74	Mon Oct 21 15:00:21 2002
+++ llvm/lib/Transforms/LevelRaise.cpp	Tue Oct 22 18:34:11 2002
@@ -158,7 +158,7 @@
                                     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...





More information about the llvm-commits mailing list