diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-28 20:07:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-28 20:07:56 +0000 |
commit | 7ce77920a35060f1c8dd72e541e42ce296ccd168 (patch) | |
tree | 784334d3b27144f66f240b82d109cc986fe080da /lib/CodeGen/CGObjC.cpp | |
parent | f306f86d2b85e820f5d1f397e4441d52373823d6 (diff) |
Obscure code gen bug related to sending
message to 'super' in a class method declared in
cateogy (darwin specific).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65709 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 ec11edb349..cebaa1eb03 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -89,9 +89,11 @@ RValue CodeGenFunction::EmitObjCMessageExpr(const ObjCMessageExpr *E) { if (isSuperMessage) { // super is only valid in an Objective-C method const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); + bool isCategoryImpl = isa<ObjCCategoryImplDecl>(OMD->getDeclContext()); return Runtime.GenerateMessageSendSuper(*this, E->getType(), E->getSelector(), OMD->getClassInterface(), + isCategoryImpl, Receiver, isClassMessage, Args); |