aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/InductionVariable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 00:15:57 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 00:15:57 +0000
commita298d27808ecb8ffb574d6e50f56601db2ec5fda (patch)
treed69327afaa224b21529a2cc2eb15d1e80588ecb6 /lib/Analysis/InductionVariable.cpp
parent483e14ee0412a98db1fb0121528d8d621ae3dfdb (diff)
Change the Dominator info and LoopInfo classes to keep track of BasicBlock's, not
const BasicBlocks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InductionVariable.cpp')
-rw-r--r--lib/Analysis/InductionVariable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp
index 8c02dfa334..4d4306b9d0 100644
--- a/lib/Analysis/InductionVariable.cpp
+++ b/lib/Analysis/InductionVariable.cpp
@@ -31,8 +31,8 @@ static bool isLoopInvariant(const Value *V, const cfg::Loop *L) {
if (isa<Constant>(V) || isa<Argument>(V) || isa<GlobalValue>(V))
return true;
- const Instruction *I = cast<Instruction>(V);
- const BasicBlock *BB = I->getParent();
+ Instruction *I = cast<Instruction>(V);
+ BasicBlock *BB = I->getParent();
return !L->contains(BB);
}