From 2f87216d26d2fce02d2aa6d6dd0a37d61f75fdfb Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 29 Apr 2009 19:14:43 +0000 Subject: [PATCH] Type of msgSend message dispatch API is a vararg. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70404 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGObjCMac.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index ae3c267190..5b1a082ba2 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -1413,7 +1413,9 @@ CodeGen::RValue CGObjCMac::EmitMessageSend(CodeGen::CodeGenFunction &CGF, CodeGenTypes &Types = CGM.getTypes(); const CGFunctionInfo &FnInfo = Types.getFunctionInfo(ResultType, ActualArgs); - const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo, false); + // Type is a vararg. In 32bit code gen. it is ignored. In 64bit it is + // looked at. + const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo, true); llvm::Constant *Fn; if (CGM.ReturnTypeUsesSret(FnInfo)) { -- 2.40.0