r347987 - Fix warning about unused variable [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 05:38:33 PST 2018
Author: uabelho
Date: Fri Nov 30 05:38:33 2018
New Revision: 347987
URL: http://llvm.org/viewvc/llvm-project?rev=347987&view=rev
Log:
Fix warning about unused variable [NFC]
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp?rev=347987&r1=347986&r2=347987&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp Fri Nov 30 05:38:33 2018
@@ -137,7 +137,7 @@ static void generateDiagnosticsForCallLi
} else {
os << "function call";
}
- } else if (const auto *NE = dyn_cast<CXXNewExpr>(S)){
+ } else if (isa<CXXNewExpr>(S)){
os << "Operator new";
} else {
assert(isa<ObjCMessageExpr>(S));
More information about the cfe-commits
mailing list