]> granicus.if.org Git - clang/commitdiff
Remove unused variable to silence GCC warning
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Apr 2015 04:14:25 +0000 (04:14 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Apr 2015 04:14:25 +0000 (04:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235693 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPLexerChange.cpp

index b53c40ec5c8e56e08f8e63bd6956f9696737bd18..a57cba4183550aac72b6010e9113d565c04a5f11 100644 (file)
@@ -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;
       }
     }