diff options
author | Julien Lerouge <jlerouge@apple.com> | 2014-04-15 18:06:46 +0000 |
---|---|---|
committer | Julien Lerouge <jlerouge@apple.com> | 2014-04-15 18:06:46 +0000 |
commit | be4fe32eb8ad20e47fecf7e85e57c7e522ec5143 (patch) | |
tree | e909fbebe7866d3c9a820d943bc4de21a72b7b84 /llvm/lib/Transforms | |
parent | 957e91c4d8191c186ba41c25c5ad763a569a60f3 (diff) | |
download | bcm5719-llvm-be4fe32eb8ad20e47fecf7e85e57c7e522ec5143.tar.gz bcm5719-llvm-be4fe32eb8ad20e47fecf7e85e57c7e522ec5143.zip |
Add lifetime markers for allocas created to hold byval arguments, make them
appear in the InlineFunctionInfo.
llvm-svn: 206308
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index b2262dca741..5692d91c86e 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -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. |