]> granicus.if.org Git - clang/commitdiff
Fixed a bad ir-gen bug which caused a dejagnu test to fail.
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 14 Feb 2009 21:25:36 +0000 (21:25 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 14 Feb 2009 21:25:36 +0000 (21:25 +0000)
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

index 4ec0e7c888348db97bbe7be50880ce9e32b8cc7b..1a5facd1b9d7a0fe27b169ca14b9519c0b18ea47 100644 (file)
@@ -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);