r304892 - [Sema] Silence unused variable warning.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 7 03:23:17 PDT 2017
Author: d0k
Date: Wed Jun 7 05:23:17 2017
New Revision: 304892
URL: http://llvm.org/viewvc/llvm-project?rev=304892&view=rev
Log:
[Sema] Silence unused variable warning.
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=304892&r1=304891&r2=304892&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Jun 7 05:23:17 2017
@@ -11843,7 +11843,7 @@ ExprResult Sema::BuildBinOp(Scope *S, So
std::any_of(OE->decls_begin(), OE->decls_end(), [](NamedDecl *ND) {
return isa<FunctionTemplateDecl>(ND);
})) {
- if (auto *Q = OE->getQualifier()) {
+ if (OE->getQualifier()) {
Diag(OE->getQualifierLoc().getBeginLoc(),
diag::err_template_kw_missing)
<< OE->getName().getAsString() << "";
More information about the cfe-commits
mailing list