r235693 - Remove unused variable to silence GCC warning
David Majnemer
david.majnemer at gmail.com
Thu Apr 23 21:14:26 PDT 2015
Author: majnemer
Date: Thu Apr 23 23:14:25 2015
New Revision: 235693
URL: http://llvm.org/viewvc/llvm-project?rev=235693&view=rev
Log:
Remove unused variable to silence GCC warning
Modified:
cfe/trunk/lib/Lex/PPLexerChange.cpp
Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=235693&r1=235692&r2=235693&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Thu Apr 23 23:14:25 2015
@@ -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;
}
}
More information about the cfe-commits
mailing list