Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>.
llvm-svn: 216824
This commit is contained in:
@@ -883,7 +883,7 @@ bool Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall,
|
||||
++Args;
|
||||
--NumArgs;
|
||||
}
|
||||
checkCall(FDecl, llvm::makeArrayRef<const Expr *>(Args, NumArgs), NumParams,
|
||||
checkCall(FDecl, llvm::makeArrayRef(Args, NumArgs), NumParams,
|
||||
IsMemberFunction, TheCall->getRParenLoc(),
|
||||
TheCall->getCallee()->getSourceRange(), CallType);
|
||||
|
||||
@@ -942,8 +942,8 @@ bool Sema::CheckPointerCall(NamedDecl *NDecl, CallExpr *TheCall,
|
||||
}
|
||||
unsigned NumParams = Proto ? Proto->getNumParams() : 0;
|
||||
|
||||
checkCall(NDecl, llvm::makeArrayRef<const Expr *>(TheCall->getArgs(),
|
||||
TheCall->getNumArgs()),
|
||||
checkCall(NDecl, llvm::makeArrayRef(TheCall->getArgs(),
|
||||
TheCall->getNumArgs()),
|
||||
NumParams, /*IsMemberFunction=*/false, TheCall->getRParenLoc(),
|
||||
TheCall->getCallee()->getSourceRange(), CallType);
|
||||
|
||||
@@ -958,8 +958,7 @@ bool Sema::CheckOtherCall(CallExpr *TheCall, const FunctionProtoType *Proto) {
|
||||
unsigned NumParams = Proto ? Proto->getNumParams() : 0;
|
||||
|
||||
checkCall(/*FDecl=*/nullptr,
|
||||
llvm::makeArrayRef<const Expr *>(TheCall->getArgs(),
|
||||
TheCall->getNumArgs()),
|
||||
llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()),
|
||||
NumParams, /*IsMemberFunction=*/false, TheCall->getRParenLoc(),
|
||||
TheCall->getCallee()->getSourceRange(), CallType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user