forked from OSchip/llvm-project
Type of msgSend message dispatch API is a vararg.
llvm-svn: 70404
This commit is contained in:
parent
88788feddd
commit
e27b929809
|
@ -1413,7 +1413,9 @@ CodeGen::RValue CGObjCMac::EmitMessageSend(CodeGen::CodeGenFunction &CGF,
|
||||||
|
|
||||||
CodeGenTypes &Types = CGM.getTypes();
|
CodeGenTypes &Types = CGM.getTypes();
|
||||||
const CGFunctionInfo &FnInfo = Types.getFunctionInfo(ResultType, ActualArgs);
|
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;
|
llvm::Constant *Fn;
|
||||||
if (CGM.ReturnTypeUsesSret(FnInfo)) {
|
if (CGM.ReturnTypeUsesSret(FnInfo)) {
|
||||||
|
|
Loading…
Reference in New Issue