[cfe-commits] r88741 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Nov 13 18:18:31 PST 2009
Author: fjahanian
Date: Fri Nov 13 20:18:31 2009
New Revision: 88741
URL: http://llvm.org/viewvc/llvm-project?rev=88741&view=rev
Log:
Generate the old API when sending message to super
in a category implementation (objc 32bit api related).
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=88741&r1=88740&r2=88741&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Fri Nov 13 20:18:31 2009
@@ -1488,7 +1488,10 @@
llvm::Value *Super = CGF.Builder.CreateLoad(SuperPtr);
Target = Super;
}
- } else {
+ }
+ else if (isCategoryImpl)
+ Target = EmitClassRef(CGF.Builder, Class->getSuperClass());
+ else {
llvm::Value *ClassPtr = EmitSuperClassRef(Class);
ClassPtr = CGF.Builder.CreateStructGEP(ClassPtr, 1);
Target = CGF.Builder.CreateLoad(ClassPtr);
More information about the cfe-commits
mailing list