Skip to content

Commit 7f16bb1

Browse files
committed
Address review comment
1 parent f3a5543 commit 7f16bb1

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
@@ -191,7 +191,7 @@ MemoryLocation MemoryLocation::getForArgument(const CallBase *Call,
191191
Arg,
192192
LocationSize::precise(
193193
LenCI->getZExtValue() *
194-
DL.getTypeStoreSize(II->getArgOperand(1)->getType())),
194+
DL.getTypeAllocSize(II->getArgOperand(1)->getType())),
195195
AATags);
196196
return MemoryLocation::getAfter(Arg, AATags);
197197

0 commit comments

Comments
 (0)