diff options
author | Mike Stump <mrs@apple.com> | 2009-03-20 21:53:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-20 21:53:12 +0000 |
commit | 6cc88f78fd36d3511b89412b193494b3e423cbff (patch) | |
tree | 1e15a06b97d146a052973e948b20e6ebe778c5b1 /lib/CodeGen/CGObjC.cpp | |
parent | 082d936a5b8323ac2c04558d8bca277a647831a3 (diff) |
Fix codegen for support for super inside block literal expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 7f5262df1d..acc07c740a 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -304,6 +304,8 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP, llvm::Value *CodeGenFunction::LoadObjCSelf() { const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); + // See if we need to lazily forward self inside a block literal. + BlockForwardSelf(); return Builder.CreateLoad(LocalDeclMap[OMD->getSelfDecl()], "self"); } |