summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit99b6f5cac41251ba0e92f8211e55f16f373cb93b (patch)
tree58a5b85a43cdaa1c7ffe8b213db2e87a9240552e /llvm/lib/Analysis/InductionVariable.cpp
parentf998685cd9754e4c1de1c98343c3f366703c6561 (diff)
downloadbcm5719-llvm-99b6f5cac41251ba0e92f8211e55f16f373cb93b.tar.gz
bcm5719-llvm-99b6f5cac41251ba0e92f8211e55f16f373cb93b.zip
Change the Dominator info and LoopInfo classes to keep track of BasicBlock's, not
const BasicBlocks llvm-svn: 2337
Diffstat (limited to 'llvm/lib/Analysis/InductionVariable.cpp')
-rw-r--r--llvm/lib/Analysis/InductionVariable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InductionVariable.cpp b/llvm/lib/Analysis/InductionVariable.cpp
index 8c02dfa334e..4d4306b9d0d 100644
--- a/llvm/lib/Analysis/InductionVariable.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud