aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-10 14:55:05 +0000
committerChris Lattner <sabre@nondot.org>2003-09-10 14:55:05 +0000
commita176a8bb392f3dea6775a52cc6d93ac16dba8be1 (patch)
treed89ee603be89931edef3f2f6914cd00d3c462f13 /lib
parent44abf85ae752de4cf70a8aaaff20ebc80c271b0c (diff)
downloadexternal_llvm-a176a8bb392f3dea6775a52cc6d93ac16dba8be1.zip
external_llvm-a176a8bb392f3dea6775a52cc6d93ac16dba8be1.tar.gz
external_llvm-a176a8bb392f3dea6775a52cc6d93ac16dba8be1.tar.bz2
another trivial cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/InductionVariable.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp
index 4c53c96..3e33ca1 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