add a comment.

llvm-svn: 57394
This commit is contained in:
Chris Lattner 2008-10-12 01:23:27 +00:00
parent 50c9050037
commit 6b0c5ad096
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ Lexer::Lexer(SourceLocation fileloc, const LangOptions &features,
Is_PragmaLexer = false;
InitCharacterInfo();
// If a MemoryBuffer was specified, use its start as BufferStart. This affects
// the source location objects produced by this lexer.
BufferStart = FromFile ? FromFile->getBufferStart() : BufStart;
BufferPtr = BufStart;
BufferEnd = BufEnd;