[cfe-commits] r69501 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 18 18:33:30 PDT 2009
Author: lattner
Date: Sat Apr 18 20:33:30 2009
New Revision: 69501
URL: http://llvm.org/viewvc/llvm-project?rev=69501&view=rev
Log:
revert david's patch, which causes a testsuite failure.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=69501&r1=69500&r2=69501&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Sat Apr 18 20:33:30 2009
@@ -299,9 +299,8 @@
const ObjCInterfaceDecl *SuperClass = Class->getSuperClass();
// TODO: This should be cached, not looked up every time.
llvm::Value *ReceiverClass = GetClass(CGF.Builder, SuperClass);
- if (IsClassMessage)
- ReceiverClass = CGF.Builder.CreateBitCast(CGF.Builder.CreateLoad(
- CGF.Builder.CreateStructGEP(ReceiverClass, 0)), IdTy);
+
+
// Construct the structure used to look up the IMP
llvm::StructType *ObjCSuperTy = llvm::StructType::get(Receiver->getType(),
IdTy, NULL);
More information about the cfe-commits
mailing list