summaryrefslogtreecommitdiffstats
path: root/clang/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/ParseExpr.cpp')
-rw-r--r--clang/Parse/ParseExpr.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/Parse/ParseExpr.cpp b/clang/Parse/ParseExpr.cpp
index 00b2899a034..09f588aeec3 100644
--- a/clang/Parse/ParseExpr.cpp
+++ b/clang/Parse/ParseExpr.cpp
@@ -938,12 +938,6 @@ Parser::ExprResult Parser::ParseBuiltinPrimaryExpression() {
SkipUntil(tok::r_paren);
return ExprResult(true);
}
-
- // __builtin_overload requires at least 2 arguments
- if (ArgExprs.size() < 2) {
- Diag(Tok, diag::err_typecheck_call_too_few_args);
- return ExprResult(true);
- }
Res = Actions.ActOnOverloadExpr(&ArgExprs[0], ArgExprs.size(),
&CommaLocs[0], StartLoc, ConsumeParen());
break;
OpenPOWER on IntegriCloud