Type of msgSend message dispatch API is a vararg.

llvm-svn: 70404
This commit is contained in:
Fariborz Jahanian 2009-04-29 19:14:43 +00:00
parent 88788feddd
commit e27b929809
1 changed files with 3 additions and 1 deletions

View File

@ -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)) {