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
diff --git a/lib/Analysis/InductionVariable.cpp b/lib/Analysis/InductionVariable.cpp
index 8c02dfa..4d4306b 100644
--- a/lib/Analysis/InductionVariable.cpp
+++ b/lib/Analysis/InductionVariable.cpp
@@ -31,8 +31,8 @@
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);
}