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
This commit is contained in:
Chris Lattner
2002-04-28 00:15:57 +00:00
parent 483e14ee04
commit a298d27808
8 changed files with 82 additions and 86 deletions
+2 -2
View 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);
}