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 | 89e19b43b81a6b5d092a81d2ebf6ec9a4097a48d (patch) | |
tree | d3a7e2f82413cd9e7535464b531db599618b8bc6 /lib/CodeGen/CodeGenFunction.h | |
parent | 344c77aac25e5d960aced3f45fbaa09853383f6d (diff) |
Don't assert/crash on reference variables in lambdas bound to a
static local variable from the parent scope. PR14773.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index e8f70555c5..acc12fe6b6 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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]; |