diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-03-29 19:20:35 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-03-29 19:20:35 +0000 |
commit | 9b97adfb770c3b55c1a45049d53b624bbc6f62e1 (patch) | |
tree | fbe268b381ff1b0df3b304df84d19c01f11fbd6c /lib/CodeGen/CGDecl.cpp | |
parent | e86fcc46f560b8e0e13e13a7a1854658b231b2ea (diff) |
Bugfix/Followup for r177086.
* Store the .block_descriptor (instead of self) in the alloca so we
can guarantee that all captured variables are available at -O0.
* Add the missing OpDeref for the alloca.
rdar://problem/12767564
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 5f388e0b28..d59c876d71 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -1578,7 +1578,7 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg, LocalDeclMap[&D] = Arg; llvm::Value *LocalAddr = 0; if (CGM.getCodeGenOpts().OptimizationLevel == 0) { - // Allocate a stack slot to let debug info survive the RA. + // Allocate a stack slot to let the debug info survive the RA. llvm::AllocaInst *Alloc = CreateTempAlloca(ConvertTypeForMem(Ty), D.getName() + ".addr"); Alloc->setAlignment(getContext().getDeclAlign(&D).getQuantity()); |