File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lldb/unittests/Expression Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ using namespace lldb_private;
20
20
21
21
namespace {
22
22
struct CppModuleConfigurationTest : public testing ::Test {
23
- llvm::MemoryBufferRef m_empty_buffer;
23
+ std::unique_ptr< llvm::MemoryBuffer> m_empty_buffer;
24
24
llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> m_fs;
25
25
26
26
CppModuleConfigurationTest ()
27
- : m_empty_buffer(" " , " <empty buffer>" ),
27
+ : m_empty_buffer(llvm::MemoryBuffer::getMemBuffer( " " , " <empty buffer>" ) ),
28
28
m_fs (new llvm::vfs::InMemoryFileSystem()) {}
29
29
30
30
void SetUp () override {
@@ -42,7 +42,7 @@ struct CppModuleConfigurationTest : public testing::Test {
42
42
FileSpecList result;
43
43
for (const std::string &path : paths) {
44
44
result.Append (FileSpec (path, FileSpec::Style::posix));
45
- if (!m_fs->addFileNoOwn (path, static_cast <time_t >(0 ), m_empty_buffer))
45
+ if (!m_fs->addFileNoOwn (path, static_cast <time_t >(0 ), m_empty_buffer. get () ))
46
46
llvm_unreachable (" Invalid test configuration?" );
47
47
}
48
48
return result;
You can’t perform that action at this time.
0 commit comments