diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-13 12:14:38 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-20 18:41:25 -0700 |
commit | 69074bf144c1bf54040d289584e3d1d54f883a37 (patch) | |
tree | 4f259548ea259f8b629d477e78ebeea2dc1d56f3 /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 3de1e30c9a59c0c2f7d498488532e1e324059082 (diff) | |
download | llvm-69074bf144c1bf54040d289584e3d1d54f883a37.zip llvm-69074bf144c1bf54040d289584e3d1d54f883a37.tar.gz llvm-69074bf144c1bf54040d289584e3d1d54f883a37.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `FileManagerTest`
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
-rw-r--r-- | clang/unittests/Basic/FileManagerTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp index 4c8205b..bf30fab 100644 --- a/clang/unittests/Basic/FileManagerTest.cpp +++ b/clang/unittests/Basic/FileManagerTest.cpp @@ -547,7 +547,7 @@ TEST_F(FileManagerTest, getBypassFile) { Manager.setStatCache(std::move(Cache)); // Set up a virtual file with a different size than FakeStatCache uses. - const FileEntry *File = Manager.getVirtualFile("/tmp/test", /*Size=*/10, 0); + FileEntryRef File = Manager.getVirtualFileRef("/tmp/test", /*Size=*/10, 0); ASSERT_TRUE(File); const FileEntry &FE = *File; EXPECT_EQ(FE.getSize(), 10); @@ -562,7 +562,7 @@ TEST_F(FileManagerTest, getBypassFile) { EXPECT_EQ(FE.getSize(), 10); // Bypass the file. - OptionalFileEntryRef BypassRef = Manager.getBypassFile(File->getLastRef()); + OptionalFileEntryRef BypassRef = Manager.getBypassFile(File); ASSERT_TRUE(BypassRef); EXPECT_EQ("/tmp/test", BypassRef->getName()); |