mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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:
parent
caca2b659f
commit
67efc56b80
@ -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…
x
Reference in New Issue
Block a user