Skip to content

Commit c71bfc5

Browse files
committed
[clang] Fix FileManagerTest
Compilation failure caused by b1aea98.
1 parent f172c31 commit c71bfc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/unittests/Basic/FileManagerTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedRealFiles) {
255255

256256
EXPECT_EQ("abc/foo.cpp", r1->getName());
257257
EXPECT_EQ("abc/bar.cpp", r2->getName());
258-
EXPECT_EQ((f1 ? *f1 : nullptr), &r1->getFileEntry());
259-
EXPECT_EQ((f2 ? *f2 : nullptr), &r2->getFileEntry());
258+
EXPECT_EQ((f1 ? &f1->getFileEntry() : nullptr), &r1->getFileEntry());
259+
EXPECT_EQ((f2 ? &f2->getFileEntry() : nullptr), &r2->getFileEntry());
260260
}
261261

262262
TEST_F(FileManagerTest, getFileRefReturnsCorrectNameForDifferentStatPath) {

0 commit comments

Comments
 (0)