From f5fe2974cfd2dde5d0c9d98428fce5b3f5d3955a Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Thu, 14 Mar 2019 14:20:50 +0000 Subject: [PATCH] Remove unused variable to silence compiler warning [NFC] The only use of MI was removed in r356142. llvm-svn: 356152 --- clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 116eb6c..c03bab0 100644 --- a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -892,8 +892,7 @@ static std::string getMacroNameAndPrintExpansion( // If this token is a macro that should be expanded inside the current // macro. - if (const MacroInfo *MI = - getMacroInfoForLocation(PP, SM, II, T.getLocation())) { + if (getMacroInfoForLocation(PP, SM, II, T.getLocation())) { getMacroNameAndPrintExpansion(Printer, T.getLocation(), PP, Info.Args, AlreadyProcessedTokens); -- 2.7.4