Remove unused variable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 21 Mar 2013 19:47:38 +0000 (19:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 21 Mar 2013 19:47:38 +0000 (19:47 +0000)
llvm-svn: 177657

clang/lib/Serialization/ModuleManager.cpp

index a9f4794..7384da5 100644 (file)
@@ -59,7 +59,6 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
   }
 
   // Check whether we already loaded this module, before
-  AddModuleResult Result = AlreadyLoaded;
   ModuleFile *&ModuleEntry = Modules[Entry];
   bool NewModule = false;
   if (!ModuleEntry) {
@@ -95,8 +94,6 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
     // Initialize the stream
     New->StreamFile.init((const unsigned char *)New->Buffer->getBufferStart(),
                          (const unsigned char *)New->Buffer->getBufferEnd());
-
-    Result = NewlyLoaded;
   }
   
   if (ImportedBy) {