r304960 - Simplify.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 7 19:05:55 PDT 2017
Author: rsmith
Date: Wed Jun 7 21:05:55 2017
New Revision: 304960
URL: http://llvm.org/viewvc/llvm-project?rev=304960&view=rev
Log:
Simplify.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=304960&r1=304959&r2=304960&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Jun 7 21:05:55 2017
@@ -11843,14 +11843,10 @@ ExprResult Sema::BuildBinOp(Scope *S, So
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();
}
}
More information about the cfe-commits
mailing list