diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-04-24 04:14:25 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-04-24 04:14:25 +0000 |
commit | b9ac794f577ebf68c1ad5dd27c83122de3b4b02a (patch) | |
tree | 7670a7ff35283a2f95a75ceaa7298cf27035573b /clang/lib/Lex/PPLexerChange.cpp | |
parent | 8b72566eec2f35d683655a2cc6e4a4054f85a596 (diff) | |
download | bcm5719-llvm-b9ac794f577ebf68c1ad5dd27c83122de3b4b02a.tar.gz bcm5719-llvm-b9ac794f577ebf68c1ad5dd27c83122de3b4b02a.zip |
Remove unused variable to silence GCC warning
llvm-svn: 235693
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index b53c40ec5c8..a57cba41835 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -630,7 +630,6 @@ void Preprocessor::LeaveSubmodule() { // This module may have exported a new macro. If so, create a ModuleMacro // representing that fact. bool ExplicitlyPublic = false; - ModuleMacro *MM = nullptr; for (auto *MD = Macro.second.getLatest(); MD != State.getLatest(); MD = MD->getPrevious()) { // Skip macros defined in other submodules we #included along the way. @@ -654,8 +653,8 @@ void Preprocessor::LeaveSubmodule() { // FIXME: Issue a warning if multiple headers for the same submodule // define a macro, rather than silently ignoring all but the first. bool IsNew; - MM = addModuleMacro(Info.M, II, Def, Macro.second.getOverriddenMacros(), - IsNew); + addModuleMacro(Info.M, II, Def, Macro.second.getOverriddenMacros(), + IsNew); break; } } |