Simplify.

llvm-svn: 304960
This commit is contained in:
Richard Smith 2017-06-08 02:05:55 +00:00
parent 1fd77b2599
commit 4a7ac59b37
1 changed files with 4 additions and 8 deletions

View File

@ -11843,14 +11843,10 @@ ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
std::any_of(OE->decls_begin(), OE->decls_end(), [](NamedDecl *ND) {
return isa<FunctionTemplateDecl>(ND);
})) {
if (OE->getQualifier()) {
Diag(OE->getQualifierLoc().getBeginLoc(),
diag::err_template_kw_missing)
<< OE->getName().getAsString() << "";
} else {
Diag(OE->getNameLoc(), diag::err_template_kw_missing)
<< OE->getName().getAsString() << "";
}
Diag(OE->getQualifier() ? OE->getQualifierLoc().getBeginLoc()
: OE->getNameLoc(),
diag::err_template_kw_missing)
<< OE->getName().getAsString() << "";
return ExprError();
}
}