Change the Dominator info and LoopInfo classes to keep track of BasicBlock's, not
[oota-llvm.git] / lib / Analysis / InductionVariable.cpp
index 8c02dfa334e44708b5a6bd66431d53ee8dc4a1b0..4d4306b9d0d7dc2eed92d291dac15d329d205fe6 100644 (file)
@@ -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);
 }