diff options
author | John McCall <rjmccall@apple.com> | 2010-05-21 04:11:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-21 04:11:14 +0000 |
commit | 9d42f0f174aa86e7434b0e385469bd0db6dc66cf (patch) | |
tree | a1755bad3ccab617d6bf8735c9a025b599215b06 /clang/lib/CodeGen/CGObjC.cpp | |
parent | d5f0998c6e84d4412007e8bbc732b7d5f7820a9c (diff) | |
download | bcm5719-llvm-9d42f0f174aa86e7434b0e385469bd0db6dc66cf.tar.gz bcm5719-llvm-9d42f0f174aa86e7434b0e385469bd0db6dc66cf.zip |
Allocate space in a block record for implicit references to the Objective C
'self' variable arising from uses of the 'super' keyword. Also reorganize
some code so that BlockInfo (now CGBlockInfo) can be opaque outside of
CGBlocks.cpp.
Fixes rdar://problem/8010633.
llvm-svn: 104312
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 9943a3b7007..674f50234e5 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -494,8 +494,6 @@ bool CodeGenFunction::IvarTypeWithAggrGCObjects(QualType Ty) { 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"); } |