]> granicus.if.org Git - clang/commitdiff
Simplify code
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 19 Dec 2013 23:25:59 +0000 (23:25 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 19 Dec 2013 23:25:59 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197748 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index cbdfab561f7f791dd9c1a42f03ce39b3eaa280b4..9862e2d87df40bb2dab4de95d4b79bc7d8b84ae9 100644 (file)
@@ -1549,7 +1549,7 @@ llvm::MemoryBuffer *ASTUnit::getMainBufferWithPrecompiledPreamble(
 
   // Save the preamble text for later; we'll need to compare against it for
   // subsequent reparses.
-  StringRef MainFilename = PreambleInvocation->getFrontendOpts().Inputs[0].getFile();
+  StringRef MainFilename = FrontendOpts.Inputs[0].getFile();
   Preamble.assign(FileMgr->getFile(MainFilename),
                   NewPreamble.first->getBufferStart(), 
                   NewPreamble.first->getBufferStart()