From 692c6e3729149e44ba688a173c42b99c66821aa1 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 20 Mar 2009 21:53:12 +0000 Subject: Fix codegen for support for super inside block literal expressions. llvm-svn: 67406 --- clang/lib/CodeGen/CGObjC.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CGObjC.cpp') 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(CurFuncDecl); + // See if we need to lazily forward self inside a block literal. + BlockForwardSelf(); return Builder.CreateLoad(LocalDeclMap[OMD->getSelfDecl()], "self"); } -- cgit v1.2.3