aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 01:33:30 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 01:33:30 +0000
commit33b3bc9cab760cc5104f5f7be8eb25d35e7b6c61 (patch)
tree347402aa5920e6a600a004d186b41174371b0f1c /lib/CodeGen/CGObjCGNU.cpp
parente52a693787df6de250456a71c361d9c91fc40fd7 (diff)
revert david's patch, which causes a testsuite failure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index c5e2538ca0..cd94290000 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -299,9 +299,8 @@ CGObjCGNU::GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
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);