From 16aa52b2b5f201612de2ecb41a63cbb254de9b42 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356152 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 116eb6cd8e..c03bab0fe1 100644 --- a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/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.50.1