lldb: Migrate to MemoryBufferRef for createFileID (after 51d1d585e5)

I missed these two lldb users before deleting the `UnownedTag` API for
`createFileID` in 51d1d585e5. This should
fix the build.
This commit is contained in:
Duncan P. N. Exon Smith 2020-10-20 13:50:52 -04:00
parent 529ecd19df
commit b333d6e129
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ TokenVerifier::TokenVerifier(std::string body) {
clang::SourceManager SM(diags, file_mgr);
auto buf = llvm::MemoryBuffer::getMemBuffer(body);
FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get());
FileID FID = SM.createFileID(buf->getMemBufferRef());
// Let's just enable the latest ObjC and C++ which should get most tokens
// right.

View File

@ -168,7 +168,7 @@ void ClangHighlighter::Highlight(const HighlightStyle &options,
clang::SourceManager SM(diags, file_mgr);
auto buf = llvm::MemoryBuffer::getMemBuffer(full_source);
FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get());
FileID FID = SM.createFileID(buf->getMemBufferRef());
// Let's just enable the latest ObjC and C++ which should get most tokens
// right.