diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-06 23:46:26 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-02-06 23:46:26 +0000 |
commit | 169c7f8fa6d1d361f44708609cf0cd0780c4f6fb (patch) | |
tree | 18fcb95a59930b8e78221c0cd105a7cd2b25e0cb /lib/CodeGen/CGObjCMac.cpp | |
parent | ed27d441eba4cac8bd8dfdf4fd6337a7fc1b17d3 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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)); |