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:
parent
5faed6335e
commit
b895f668cc
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user