summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2019-03-14 14:20:50 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2019-03-14 14:20:50 +0000
commitf5fe2974cfd2dde5d0c9d98428fce5b3f5d3955a (patch)
treeb3d4c4b8d005f6bf212c3790b842c971df620285
parent5f4fd8b79bf6a1911f639d541e6b94beaa16151f (diff)
downloadbcm5719-llvm-f5fe2974cfd2dde5d0c9d98428fce5b3f5d3955a.tar.gz
bcm5719-llvm-f5fe2974cfd2dde5d0c9d98428fce5b3f5d3955a.zip
Remove unused variable to silence compiler warning [NFC]
The only use of MI was removed in r356142. llvm-svn: 356152
-rw-r--r--clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
index 116eb6cd8e7..c03bab0fe16 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);
OpenPOWER on IntegriCloud