summaryrefslogtreecommitdiff
path: root/clang/unittests/AST/ASTImporterTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/AST/ASTImporterTest.cpp')
-rw-r--r--clang/unittests/AST/ASTImporterTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index 15df9af88938..5badbd7d65e4 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -9189,7 +9189,7 @@ protected:
.getTypePtr();
ASSERT_TRUE(Ty);
EXPECT_FALSE(Ty->isCanonicalUnqualified());
- const auto *InjTy = Ty->castAs<InjectedClassNameType>();
+ const auto *InjTy = dyn_cast<InjectedClassNameType>(Ty);
EXPECT_TRUE(InjTy);
for (const Decl *ReD : D->redecls()) {
if (ReD == D)
@@ -9204,8 +9204,6 @@ protected:
EXPECT_FALSE(ReTy->isCanonicalUnqualified());
EXPECT_NE(ReTy, Ty);
EXPECT_TRUE(Ctx.hasSameType(ReTy, Ty));
- const auto *ReInjTy = Ty->castAs<InjectedClassNameType>();
- EXPECT_TRUE(ReInjTy);
}
}