AliasAnalysis wants sizes in address-units, not bits.

llvm-svn: 77009
This commit is contained in:
Dan Gohman 2009-07-24 23:01:30 +00:00
parent 01740ab57b
commit 85a791ef7a
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ Value *llvm::FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB,
unsigned AccessSize = 0;
if (AA) {
const Type *AccessTy = cast<PointerType>(Ptr->getType())->getElementType();
AccessSize = AA->getTargetData().getTypeStoreSizeInBits(AccessTy);
AccessSize = AA->getTargetData().getTypeStoreSize(AccessTy);
}
while (ScanFrom != ScanBB->begin()) {