Delete dead variable.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Mar 2016 21:46:44 +0000 (21:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Mar 2016 21:46:44 +0000 (21:46 +0000)
llvm-svn: 264464

clang/lib/Frontend/ASTUnit.cpp

index 0080fab..61e80d5 100644 (file)
@@ -1138,11 +1138,9 @@ bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps,
   if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0]))
     goto error;
 
-  if (SavedMainFileBuffer) {
-    std::string ModName = getPreambleFile(this);
+  if (SavedMainFileBuffer)
     TranslateStoredDiagnostics(getFileManager(), getSourceManager(),
                                PreambleDiagnostics, StoredDiagnostics);
-  }
 
   if (!Act->Execute())
     goto error;