We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2849e45 commit fd17bccCopy full SHA for fd17bcc
clang/lib/Sema/SemaChecking.cpp
@@ -5436,11 +5436,8 @@ ExprResult Sema::BuiltinInvoke(CallExpr *TheCall) {
5436
auto ObjectT = Args[1]->getType();
5437
5438
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();
+ if (MPT->isMemberDataPointer() && checkArgCount(TheCall, 2))
5442
return ExprError();
5443
- }
5444
5445
ExprResult ObjectArg = [&]() -> ExprResult {
5446
// (1.1): (t1.*f)(t2, …, tN) when f is a pointer to a member function of a
0 commit comments