diff --git a/clang/unittests/Basic/FileEntryTest.cpp b/clang/unittests/Basic/FileEntryTest.cpp index b759d3ea36d6e7..f2619a21def7af 100644 --- a/clang/unittests/Basic/FileEntryTest.cpp +++ b/clang/unittests/Basic/FileEntryTest.cpp @@ -92,7 +92,6 @@ TEST(FileEntryTest, equals) { EXPECT_NE(&R2.getFileEntry(), R1); EXPECT_NE(R1, R2); - OptionalFileEntryRefDegradesToFileEntryPtr M0; OptionalFileEntryRefDegradesToFileEntryPtr M1 = R1; EXPECT_EQ(M1, &R1.getFileEntry());