From 35afdfc36e305fafc6c08f5bfbdbc0c3d977a2a5 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 14 Feb 2009 21:25:36 +0000 Subject: 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. llvm-svn: 64569 --- clang/lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjCMac.cpp') diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 4ec0e7c8883..1a5facd1b9d 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/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); -- cgit v1.2.3