lldb: Update for change in `clang::Lexer`'s constructor

b3eff6b7bb updated `Lexer::Lexer` to take
`clang::MemoryBufferRef` instead of `clang::MemoryBuffer*`. Update LLDB
to fix the bots.
This commit is contained in:
Duncan P. N. Exon Smith 2020-10-19 20:07:25 -04:00
parent 6ca3dd9735
commit f96e16bc15
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ TokenVerifier::TokenVerifier(std::string body) {
Opts.CPlusPlus17 = true;
Opts.LineComment = true;
Lexer lex(FID, buf.get(), SM, Opts);
Lexer lex(FID, buf->getMemBufferRef(), SM, Opts);
Token token;
bool exit = false;

View File

@ -178,7 +178,7 @@ void ClangHighlighter::Highlight(const HighlightStyle &options,
Opts.CPlusPlus17 = true;
Opts.LineComment = true;
Lexer lex(FID, buf.get(), SM, Opts);
Lexer lex(FID, buf->getMemBufferRef(), SM, Opts);
// The lexer should keep whitespace around.
lex.SetKeepWhitespaceMode(true);