AliasAnalysis wants sizes in address-units, not bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-07-24 23:01:30 +00:00
parent caca2b659f
commit 67efc56b80

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()) {