From a5e084e606b4d39e04f5c43b371c0deb86f4397c Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Fri, 30 Nov 2018 13:38:33 +0000 Subject: [PATCH] Fix warning about unused variable [NFC] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347987 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Checkers/RetainCountChecker/RetainCountDiagnostics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp index 93a37aaf52..cf38495a65 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp @@ -137,7 +137,7 @@ static void generateDiagnosticsForCallLike( } else { os << "function call"; } - } else if (const auto *NE = dyn_cast(S)){ + } else if (isa(S)){ os << "Operator new"; } else { assert(isa(S)); -- 2.50.1