Skip to content

Commit f1b19bf

Browse files
tkoeppecopybara-github
authored andcommitted
Minor modernizations
Indexer-PiperOrigin-RevId: 830186291
1 parent ce8bd43 commit f1b19bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infra/indexer/frontend/ast_visitor.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,9 +863,9 @@ const clang::CXXRecordDecl* GetCXXRecordForType(const clang::QualType& type) {
863863
return nullptr;
864864
}
865865
const auto* record_type = derived_type->castAs<clang::RecordType>();
866-
CHECK(record_type);
867-
const clang::RecordDecl* decl = record_type->getOriginalDecl();
868-
CHECK(decl);
866+
CHECK(record_type != nullptr);
867+
const clang::RecordDecl* decl = record_type->getDecl();
868+
CHECK(decl != nullptr);
869869
return llvm::dyn_cast<clang::CXXRecordDecl>(decl);
870870
}
871871

0 commit comments

Comments
 (0)