Skip to content

Commit c35108e

Browse files
[AST] Migrate away from PointerUnion::get (NFC) (llvm#119949)
Note that PointerUnion::get has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with // isa<T>, cast<T> and the llvm::dyn_cast<T>
1 parent 9ef73d6 commit c35108e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/AST/ASTImporterTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9657,7 +9657,7 @@ TEST_P(ASTImporterOptionSpecificTestBase, ImportConflictTypeAliasTemplate) {
96579657
AST_MATCHER(ClassTemplateSpecializationDecl, hasInstantiatedFromMember) {
96589658
if (auto Instantiate = Node.getInstantiatedFrom()) {
96599659
if (auto *FromPartialSpecialization =
9660-
Instantiate.get<ClassTemplatePartialSpecializationDecl *>()) {
9660+
cast<ClassTemplatePartialSpecializationDecl *>(Instantiate)) {
96619661
return nullptr != FromPartialSpecialization->getInstantiatedFromMember();
96629662
}
96639663
}

0 commit comments

Comments
 (0)