]> granicus.if.org Git - clang/commitdiff
Fixed an objc2 nonfragile-abi code gen bug.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 6 Feb 2009 23:46:26 +0000 (23:46 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 6 Feb 2009 23:46:26 +0000 (23:46 +0000)
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

lib/CodeGen/CGObjCMac.cpp

index c5ce163b3bb193a06c68015567b785e825ce3ee1..ff23b838e7ba3be4c3c8ad80672b69c339c8d50f 100644 (file)
@@ -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));