Add lifetime markers for allocas created to hold byval arguments, make them
appear in the InlineFunctionInfo. llvm-svn: 206308
This commit is contained in:
@@ -394,6 +394,7 @@ static Value *HandleByValArgument(Value *Arg, Instruction *TheCall,
|
||||
|
||||
Value *NewAlloca = new AllocaInst(AggTy, 0, Align, Arg->getName(),
|
||||
&*Caller->begin()->begin());
|
||||
IFI.StaticAllocas.push_back(cast<AllocaInst>(NewAlloca));
|
||||
|
||||
// Uses of the argument in the function should use our new alloca
|
||||
// instead.
|
||||
|
||||
Reference in New Issue
Block a user