mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Do this more neatly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
88d480b552
commit
255bd2852b
@ -245,8 +245,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
|
|||||||
// or readnone, because the copy would be unneeded: the callee doesn't
|
// or readnone, because the copy would be unneeded: the callee doesn't
|
||||||
// modify the struct.
|
// modify the struct.
|
||||||
if (CalledFunc->paramHasAttr(ArgNo+1, ParamAttr::ByVal) &&
|
if (CalledFunc->paramHasAttr(ArgNo+1, ParamAttr::ByVal) &&
|
||||||
!CalledFunc->paramHasAttr(0, ParamAttr::ReadOnly) &&
|
!CalledFunc->onlyReadsMemory()) {
|
||||||
!CalledFunc->paramHasAttr(0, ParamAttr::ReadNone)) {
|
|
||||||
const Type *AggTy = cast<PointerType>(I->getType())->getElementType();
|
const Type *AggTy = cast<PointerType>(I->getType())->getElementType();
|
||||||
const Type *VoidPtrTy = PointerType::getUnqual(Type::Int8Ty);
|
const Type *VoidPtrTy = PointerType::getUnqual(Type::Int8Ty);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user