From: Fariborz Jahanian Date: Wed, 29 Apr 2009 22:47:27 +0000 (+0000) Subject: Undid setting of the flag for msg_Send for 32bit code gen. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65257cafb2cdf353d017c3860e15b813b9244bca;p=clang Undid setting of the flag for msg_Send for 32bit code gen. It seems to effect code gen. Add a FIXME instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70423 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index cae17cfdb1..af06f34682 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -1413,9 +1413,8 @@ CodeGen::RValue CGObjCMac::EmitMessageSend(CodeGen::CodeGenFunction &CGF, CodeGenTypes &Types = CGM.getTypes(); const CGFunctionInfo &FnInfo = Types.getFunctionInfo(ResultType, ActualArgs); - // 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); + // FIXME. vararg flag must be true when this API is used for 64bit code gen. + const llvm::FunctionType *FTy = Types.GetFunctionType(FnInfo, false); llvm::Constant *Fn; if (CGM.ReturnTypeUsesSret(FnInfo)) {