aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/InductionVariable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-09 00:49:43 +0000
committerChris Lattner <sabre@nondot.org>2002-11-09 00:49:43 +0000
commit0006bd75201f340b95c1dbf71e50dc5de5ed9425 (patch)
treeb92a619dde2fc0aec7a6209ea840eeaa50a525d4 /lib/Analysis/InductionVariable.cpp
parentbf10f05bf731b00979bb38f9c0c3d7a1145d8859 (diff)
Fix warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InductionVariable.cpp')
-rw-r--r--lib/Analysis/InductionVariable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp
index 6aaf8c018e..c71033e460 100644
--- a/lib/Analysis/InductionVariable.cpp
+++ b/lib/Analysis/InductionVariable.cpp
@@ -180,7 +180,7 @@ Value* InductionVariable::getExecutionCount(LoopInfo *LoopInfo) {
}
// Find final node: predecesor of the loop header that's also an exit
- BasicBlock *terminator;
+ BasicBlock *terminator = 0;
BasicBlock *header = L->getHeader();
for (pred_iterator PI = pred_begin(header), PE = pred_end(header);
PI != PE; ++PI) {