aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-11-05 18:23:19 -0500
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-03 18:09:52 -0800
commite763e032f8bbf5a4da60d099b1df4cd16e44e139 (patch)
tree487df3160783b279b911dfd9a46141ad8dd576e7 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parentc7cae0e4fa4e1ed4bdca186096a408578225fc2b (diff)
downloadllvm-e763e032f8bbf5a4da60d099b1df4cd16e44e139.zip
llvm-e763e032f8bbf5a4da60d099b1df4cd16e44e139.tar.gz
llvm-e763e032f8bbf5a4da60d099b1df4cd16e44e139.tar.bz2
Support: Change InMemoryFileSystem::addFileNoOwn to take a MemoryBufferRef, NFC
Found this by chance when looking at the InMemoryFileSystem API, seems like an easy cleanup. Differential Revision: https://reviews.llvm.org/D90893
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
-rw-r--r--llvm/unittests/Support/VirtualFileSystemTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index 64982b9e..4cc209d 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -939,7 +939,7 @@ TEST_F(InMemoryFileSystemTest, OverlayFile) {
TEST_F(InMemoryFileSystemTest, OverlayFileNoOwn) {
auto Buf = MemoryBuffer::getMemBuffer("a");
- FS.addFileNoOwn("/a", 0, Buf.get());
+ FS.addFileNoOwn("/a", 0, *Buf);
auto Stat = FS.status("/a");
ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
ASSERT_EQ("/a", Stat->getName());