ArrayRef'ize Sema::CheckObjCMethodCall
Patch by Robert Wilhelm. llvm-svn: 181164
This commit is contained in:
@@ -586,12 +586,11 @@ bool Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
|
||||
}
|
||||
|
||||
bool Sema::CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation lbrac,
|
||||
Expr **Args, unsigned NumArgs) {
|
||||
ArrayRef<const Expr *> Args) {
|
||||
VariadicCallType CallType =
|
||||
Method->isVariadic() ? VariadicMethod : VariadicDoesNotApply;
|
||||
|
||||
checkCall(Method, llvm::makeArrayRef<const Expr *>(Args, NumArgs),
|
||||
Method->param_size(),
|
||||
checkCall(Method, Args, Method->param_size(),
|
||||
/*IsMemberFunction=*/false,
|
||||
lbrac, Method->getSourceRange(), CallType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user