From b814e2d1c00c4a1abea1997ba76577e2952c37ec 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15565 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ModuloScheduling/MSSchedule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/ModuloScheduling/MSSchedule.cpp') diff --git a/lib/CodeGen/ModuloScheduling/MSSchedule.cpp b/lib/CodeGen/ModuloScheduling/MSSchedule.cpp index 8ec19dad72..c57cb5a3bd 100644 --- a/lib/CodeGen/ModuloScheduling/MSSchedule.cpp +++ b/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-18-g5258