Skip to content

Commit fd17bcc

Browse files
committed
Address comments
1 parent 2849e45 commit fd17bcc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,11 +5436,8 @@ ExprResult Sema::BuiltinInvoke(CallExpr *TheCall) {
54365436
auto ObjectT = Args[1]->getType();
54375437

54385438

5439-
if (MPT->isMemberDataPointer() && Args.size() != 2) {
5440-
Diag(TheCall->getBeginLoc(), diag::err_typecheck_call_too_many_args)
5441-
<< 0 << 2 << Args.size() << 0 << TheCall->getSourceRange();
5439+
if (MPT->isMemberDataPointer() && checkArgCount(TheCall, 2))
54425440
return ExprError();
5443-
}
54445441

54455442
ExprResult ObjectArg = [&]() -> ExprResult {
54465443
// (1.1): (t1.*f)(t2, …, tN) when f is a pointer to a member function of a

0 commit comments

Comments
 (0)