From f4be611b55889afa1626b0d3edfa1632e4858846 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Sep 2003 14:55:05 +0000 Subject: [PATCH] another trivial cleanup llvm-svn: 8435 --- lib/Analysis/InductionVariable.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp index 4c53c967863..3e33ca1335e 100644 --- a/lib/Analysis/InductionVariable.cpp +++ b/lib/Analysis/InductionVariable.cpp @@ -215,10 +215,9 @@ Value *InductionVariable::getExecutionCount(LoopInfo *LoopInfo) { DEBUG(std::cerr << "sci:" << *SCI); Value *condVal0 = SCI->getOperand(0); Value *condVal1 = SCI->getOperand(1); - Value *indVar = 0; - // the induction variable is the one coming from the backedge - indVar = Phi->getIncomingValue(L->contains(Phi->getIncomingBlock(1))); + // The induction variable is the one coming from the backedge + Value *indVar = Phi->getIncomingValue(L->contains(Phi->getIncomingBlock(1))); // Check to see if indVar is one of the parameters in SCI and if the other is