Fix warning
[oota-llvm.git] / lib / Analysis / InductionVariable.cpp
index 6aaf8c018e148f66174d5e93d49b9e0bb54b4187..c71033e4607db668495a6dc3333d57962d3b2594 100644 (file)
@@ -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) {