r197748 - Simplify code
Dmitri Gribenko
gribozavr at gmail.com
Thu Dec 19 15:26:00 PST 2013
Author: gribozavr
Date: Thu Dec 19 17:25:59 2013
New Revision: 197748
URL: http://llvm.org/viewvc/llvm-project?rev=197748&view=rev
Log:
Simplify code
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=197748&r1=197747&r2=197748&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Thu Dec 19 17:25:59 2013
@@ -1549,7 +1549,7 @@ llvm::MemoryBuffer *ASTUnit::getMainBuff
// 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()
More information about the cfe-commits
mailing list