aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-04 03:51:55 +0000
committerChris Lattner <sabre@nondot.org>2004-08-04 03:51:55 +0000
commit3e689f807060dbfcbb25fc999066ae83e28317f4 (patch)
tree442be418412a784c66e266ba825bff45b08d4dc0 /llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
parent26dc86a8bd71b8c113eb9c472370e3856e7abc06 (diff)
downloadllvm-3e689f807060dbfcbb25fc999066ae83e28317f4.zip
llvm-3e689f807060dbfcbb25fc999066ae83e28317f4.tar.gz
llvm-3e689f807060dbfcbb25fc999066ae83e28317f4.tar.bz2
Squelch warnings in release mode
llvm-svn: 15460
Diffstat (limited to 'llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp b/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
index dc3e1ae..1dda359 100644
--- a/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
+++ b/llvm/lib/CodeGen/ModuloScheduling/ModuloScheduling.cpp
@@ -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);