From 2bce8006d5ad9a54aa38f787a6e269b449a06f0b Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 7 Aug 2004 15:19:31 +0000 Subject: Get rid of a warning when compiling optimized. Uninitialized variable has been initialized. llvm-svn: 15565 --- llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp') diff --git a/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp b/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp index 8ec19dad720..c57cb5a3bdb 100644 --- a/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp +++ b/llvm/lib/CodeGen/ModuloScheduling/MSSchedule.cpp @@ -133,7 +133,7 @@ bool MSSchedule::resourcesFree(MSchedGraphNode *node, int cycle) { } bool MSSchedule::constructKernel(int II) { - MSchedGraphNode *branchNode; + MSchedGraphNode *branchNode = 0; int stageNum = (schedule.rbegin()->first)/ II; DEBUG(std::cerr << "Number of Stages: " << stageNum << "\n"); -- cgit v1.2.3