forked from OSchip/llvm-project
parent
50c9050037
commit
6b0c5ad096
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue