Skip to content

Commit 8a2a5cb

Browse files
committed
getTypeStoreSize ~> getTypeAllocSize
1 parent adbfde0 commit 8a2a5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/MemoryLocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ MemoryLocation MemoryLocation::getForArgument(const CallBase *Call,
307307
auto *VT = cast<VectorType>(IsLoad ? II->getType()
308308
: II->getArgOperand(0)->getType());
309309
assert(Cols != 0 && "Matrix cannot have 0 columns");
310-
TypeSize Size = DL.getTypeStoreSize(VT->getScalarType()) *
310+
TypeSize Size = DL.getTypeAllocSize(VT->getScalarType()) *
311311
(ConstStride * (Cols - 1) + Rows);
312312

313313
// In the unstrided case, we have a precise size, ...

0 commit comments

Comments
 (0)