mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[InlineFunction] use getFunction(); NFC
llvm-svn: 295185
This commit is contained in:
parent
e3f91a8e7e
commit
e262bb4f6a
@ -1223,7 +1223,7 @@ static Value *HandleByValArgument(Value *Arg, Instruction *TheCall,
|
||||
PointerType *ArgTy = cast<PointerType>(Arg->getType());
|
||||
Type *AggTy = ArgTy->getElementType();
|
||||
|
||||
Function *Caller = TheCall->getParent()->getParent();
|
||||
Function *Caller = TheCall->getFunction();
|
||||
|
||||
// If the called function is readonly, then it could not mutate the caller's
|
||||
// copy of the byval'd memory. In this case, it is safe to elide the copy and
|
||||
@ -1460,8 +1460,8 @@ static void updateCalleeCount(BlockFrequencyInfo &CallerBFI, BasicBlock *CallBB,
|
||||
bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
|
||||
AAResults *CalleeAAR, bool InsertLifetime) {
|
||||
Instruction *TheCall = CS.getInstruction();
|
||||
assert(TheCall->getParent() && TheCall->getParent()->getParent() &&
|
||||
"Instruction not in function!");
|
||||
assert(TheCall->getParent() && TheCall->getFunction()
|
||||
&& "Instruction not in function!");
|
||||
|
||||
// If IFI has any state in it, zap it before we fill it in.
|
||||
IFI.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user