[clang-tools-extra] r329550 - Fix unused variable warning.
Chandler Carruth via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 9 00:26:42 PDT 2018
Author: chandlerc
Date: Mon Apr 9 00:26:42 2018
New Revision: 329550
URL: http://llvm.org/viewvc/llvm-project?rev=329550&view=rev
Log:
Fix unused variable warning.
Modified:
clang-tools-extra/trunk/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/bugprone/ParentVirtualCallCheck.cpp?rev=329550&r1=329549&r2=329550&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/bugprone/ParentVirtualCallCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/bugprone/ParentVirtualCallCheck.cpp Mon Apr 9 00:26:42 2018
@@ -99,6 +99,7 @@ void ParentVirtualCallCheck::registerMat
void ParentVirtualCallCheck::check(const MatchFinder::MatchResult &Result) {
const auto *MatchedDecl = Result.Nodes.getNodeAs<CXXMemberCallExpr>("call");
+ (void)MatchedDecl;
assert(MatchedDecl);
const auto *Member = Result.Nodes.getNodeAs<MemberExpr>("member");
More information about the cfe-commits
mailing list