From: Mikael Holmen Date: Thu, 14 Mar 2019 14:20:50 +0000 (+0000) Subject: Remove unused variable to silence compiler warning [NFC] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16aa52b2b5f201612de2ecb41a63cbb254de9b42;p=clang 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 --- 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);