summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-03-20 21:53:12 +0000
committerMike Stump <mrs@apple.com>2009-03-20 21:53:12 +0000
commit692c6e3729149e44ba688a173c42b99c66821aa1 (patch)
treedf8bbb03dcf915a43f15994fbf42dfbf142efef9 /clang/lib/CodeGen/CGObjC.cpp
parentdfd72c2b441adfbd6872e10e4b45d49a846dd5cd (diff)
downloadbcm5719-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.cpp2
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");
}
OpenPOWER on IntegriCloud