summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-22 23:34:11 +0000
committerChris Lattner <sabre@nondot.org>2002-10-22 23:34:11 +0000
commit5ae3bd630dd5df7a403b980e4f5be4170bd156fe (patch)
treed68982902819582f479c24e9eb478db41e30d69c /llvm
parentd3fcf42efc6b2d912a47ec8b50562afacdc2e021 (diff)
downloadbcm5719-llvm-5ae3bd630dd5df7a403b980e4f5be4170bd156fe.tar.gz
bcm5719-llvm-5ae3bd630dd5df7a403b980e4f5be4170bd156fe.zip
Ensure definate initialization
llvm-svn: 4263
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegClass.cpp2
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
index b92b70997ba..788921ba019 100644
--- a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
@@ -158,7 +158,7 @@ IGNode * RegClass::getIGNodeWithMinSpillCost()
{
unsigned int IGNodeListSize = IG.getIGNodeList().size();
- double MinSpillCost;
+ double MinSpillCost = 0;
IGNode *MinCostIGNode = NULL;
bool isFirstNode = true;
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index 6ea60059eae..84f57852cdc 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/lib/Transforms/LevelRaise.cpp
@@ -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...
OpenPOWER on IntegriCloud