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

appear in the InlineFunctionInfo.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Julien Lerouge
2014-04-15 18:06:46 +00:00
parent 031f5c1a82
commit 894b7f642c
3 changed files with 29 additions and 1 deletions
+1
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.