Skip to content
Snippets Groups Projects
Commit b333d6e1 authored by Duncan P. N. Exon Smith's avatar Duncan P. N. Exon Smith
Browse files

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

I missed these two lldb users before deleting the `UnownedTag` API for
`createFileID` in 51d1d585. This should
fix the build.
parent 529ecd19
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment