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 | 692c6e3729149e44ba688a173c42b99c66821aa1 (patch) | |
tree | df8bbb03dcf915a43f15994fbf42dfbf142efef9 /clang/lib/CodeGen/CGObjC.cpp | |
parent | dfd72c2b441adfbd6872e10e4b45d49a846dd5cd (diff) | |
download | bcm5719-llvm-692c6e3729149e44ba688a173c42b99c66821aa1.tar.gz bcm5719-llvm-692c6e3729149e44ba688a173c42b99c66821aa1.zip |
Fix codegen for support for super inside block literal expressions.
llvm-svn: 67406
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 7f5262df1d4..acc07c740a9 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/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"); } |