1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

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 5faed6335e
commit b895f668cc

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