forked from OSchip/llvm-project
parent
064c1c0e77
commit
c585de670f
|
@ -860,7 +860,7 @@ bool MemCpyOpt::processByValArgument(CallSite CS, unsigned ArgNo) {
|
|||
|
||||
// Find out what feeds this byval argument.
|
||||
Value *ByValArg = CS.getArgument(ArgNo);
|
||||
Type *ByValTy =cast<PointerType>(ByValArg->getType())->getElementType();
|
||||
Type *ByValTy = cast<PointerType>(ByValArg->getType())->getElementType();
|
||||
uint64_t ByValSize = TD->getTypeAllocSize(ByValTy);
|
||||
MemDepResult DepInfo =
|
||||
MD->getPointerDependencyFrom(AliasAnalysis::Location(ByValArg, ByValSize),
|
||||
|
|
Loading…
Reference in New Issue