Squelch warnings in release mode
authorChris Lattner <sabre@nondot.org>
Wed, 4 Aug 2004 03:51:55 +0000 (03:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 4 Aug 2004 03:51:55 +0000 (03:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15460 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.cpp

index dc3e1ae6de06b28499959280e289e8977e9d649b..1dda359ed7190bd2feb2c4b1b23bed3f42235084 100644 (file)
@@ -631,8 +631,8 @@ void ModuloSchedulingPass::findAllReccurrences(MSchedGraphNode *node,
     int distance = 0;
     int RecMII = II; //Starting value
     MSchedGraphNode *last = node;
-    MSchedGraphNode *srcBackEdge;
-    MSchedGraphNode *destBackEdge;
+    MSchedGraphNode *srcBackEdge = 0;
+    MSchedGraphNode *destBackEdge = 0;
     
 
 
@@ -1736,7 +1736,7 @@ void ModuloSchedulingPass::reconstructLoop(MachineBasicBlock *BB) {
       //Update last epilogue exit branch
       BranchInst *branchVal = (BranchInst*) dyn_cast<BranchInst>(BB->getBasicBlock()->getTerminator());
       //Find where we are supposed to branch to
-      BasicBlock *nextBlock;
+      BasicBlock *nextBlock = 0;
       for(unsigned j=0; j <branchVal->getNumSuccessors(); ++j) {
        if(branchVal->getSuccessor(j) != BB->getBasicBlock())
          nextBlock = branchVal->getSuccessor(j);
index dc3e1ae6de06b28499959280e289e8977e9d649b..1dda359ed7190bd2feb2c4b1b23bed3f42235084 100644 (file)
@@ -631,8 +631,8 @@ void ModuloSchedulingPass::findAllReccurrences(MSchedGraphNode *node,
     int distance = 0;
     int RecMII = II; //Starting value
     MSchedGraphNode *last = node;
-    MSchedGraphNode *srcBackEdge;
-    MSchedGraphNode *destBackEdge;
+    MSchedGraphNode *srcBackEdge = 0;
+    MSchedGraphNode *destBackEdge = 0;
     
 
 
@@ -1736,7 +1736,7 @@ void ModuloSchedulingPass::reconstructLoop(MachineBasicBlock *BB) {
       //Update last epilogue exit branch
       BranchInst *branchVal = (BranchInst*) dyn_cast<BranchInst>(BB->getBasicBlock()->getTerminator());
       //Find where we are supposed to branch to
-      BasicBlock *nextBlock;
+      BasicBlock *nextBlock = 0;
       for(unsigned j=0; j <branchVal->getNumSuccessors(); ++j) {
        if(branchVal->getSuccessor(j) != BB->getBasicBlock())
          nextBlock = branchVal->getSuccessor(j);