From 3ab75bde6d8d2798a1f400b9335d359e25fb1765 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 14 Feb 2009 21:25:36 +0000 Subject: [PATCH] Fixed a bad ir-gen bug which caused a dejagnu test to fail. Now we are pretty close to be in sync with objc's classic abi when it comes to passing dejagnu objc executable tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64569 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 4ec0e7c888..1a5facd1b9 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4466,7 +4466,7 @@ 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::FunctionType *FTy = Types.GetFunctionType(FnInfo1, false); + const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo1, true); Callee = CGF.Builder.CreateBitCast(Callee, llvm::PointerType::getUnqual(FTy)); return CGF.EmitCall(FnInfo1, Callee, ActualArgs); -- 2.40.0