diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-01-03 00:39:26 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-01-03 00:39:26 +0000 |
| commit | 33accdf602a9191caa0a42c4400241def6613af5 (patch) | |
| tree | 904bac0da199e5460ffd7b6f5e9c040666e589c3 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 3fdcc0bda3c486c371159acdbc370933860dbe42 (diff) | |
| download | bcm5719-llvm-33accdf602a9191caa0a42c4400241def6613af5.tar.gz bcm5719-llvm-33accdf602a9191caa0a42c4400241def6613af5.zip | |
Don't assert/crash on reference variables in lambdas bound to a
static local variable from the parent scope. PR14773.
llvm-svn: 171433
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index e8f70555c5a..acc12fe6b63 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1687,11 +1687,6 @@ public: /// then reuse it. void StartBlock(const char *N); - /// GetAddrOfStaticLocalVar - Return the address of a static local variable. - llvm::Constant *GetAddrOfStaticLocalVar(const VarDecl *BVD) { - return cast<llvm::Constant>(GetAddrOfLocalVar(BVD)); - } - /// GetAddrOfLocalVar - Return the address of a local variable. llvm::Value *GetAddrOfLocalVar(const VarDecl *VD) { llvm::Value *Res = LocalDeclMap[VD]; |

