From: Fariborz Jahanian Date: Fri, 6 Feb 2009 23:46:26 +0000 (+0000) Subject: Fixed an objc2 nonfragile-abi code gen bug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=169c7f8fa6d1d361f44708609cf0cd0780c4f6fb;p=clang Fixed an objc2 nonfragile-abi code gen bug. Now we can say 'hello world' objective-c style in the nonfragile abi. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63981 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index c5ce163b3b..ff23b838e7 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4399,10 +4399,6 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend( const CGFunctionInfo &FnInfo1 = Types.getFunctionInfo(ResultType, ActualArgs); llvm::Value *Callee = CGF.Builder.CreateStructGEP(Arg1, 0); Callee = CGF.Builder.CreateLoad(Callee); - const llvm::Type *T = llvm::PointerType::getUnqual(ObjCTypes.MessengerTy); - T = llvm::PointerType::getUnqual(T); - Callee = CGF.Builder.CreateBitCast(Callee, T); - Callee = CGF.Builder.CreateLoad(Callee); const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, false); Callee = CGF.Builder.CreateBitCast(Callee, llvm::PointerType::getUnqual(FTy));