Add lifetime markers for allocas created to hold byval arguments, make them

appear in the InlineFunctionInfo.

llvm-svn: 206308
This commit is contained in:
Julien Lerouge
2014-04-15 18:06:46 +00:00
parent 957e91c4d8
commit be4fe32eb8
3 changed files with 29 additions and 1 deletions

View File

@@ -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.