summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorJulien Lerouge <jlerouge@apple.com>2014-04-15 18:06:46 +0000
committerJulien Lerouge <jlerouge@apple.com>2014-04-15 18:06:46 +0000
commit894b7f642c0b52f378cdd754c3aee38a7e3b49ec (patch)
treec0f0c9e7f7218ad090e8c339f0587e5e468ad7d9 /lib/Transforms/Utils
parent031f5c1a825578de32110cee5c9e47adf95d58d2 (diff)
downloadllvm-894b7f642c0b52f378cdd754c3aee38a7e3b49ec.tar.gz
llvm-894b7f642c0b52f378cdd754c3aee38a7e3b49ec.tar.bz2
llvm-894b7f642c0b52f378cdd754c3aee38a7e3b49ec.tar.xz
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
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index b2262dca74..5692d91c86 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/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.