diff --git a/infra/indexer/frontend/ast_visitor.cc b/infra/indexer/frontend/ast_visitor.cc index c02074d832fb..a48f073025cd 100644 --- a/infra/indexer/frontend/ast_visitor.cc +++ b/infra/indexer/frontend/ast_visitor.cc @@ -864,7 +864,7 @@ const clang::CXXRecordDecl* GetCXXRecordForType(const clang::QualType& type) { } const auto* record_type = derived_type->castAs(); CHECK(record_type); - const clang::RecordDecl* decl = record_type->getOriginalDecl(); + const clang::RecordDecl* decl = record_type->getDecl(); CHECK(decl); return llvm::dyn_cast(decl); }