From b6ca75fb9b4f064caec18e7dd9108834cb815809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Mon, 17 Nov 2025 06:34:49 -0800 Subject: [PATCH] Migrate to new member function getDecl Indexer-PiperOrigin-RevId: 833314005 --- infra/indexer/frontend/ast_visitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/indexer/frontend/ast_visitor.cc b/infra/indexer/frontend/ast_visitor.cc index c02074d832fb..4dea9bcf76ec 100644 --- a/infra/indexer/frontend/ast_visitor.cc +++ b/infra/indexer/frontend/ast_visitor.cc @@ -863,9 +863,9 @@ const clang::CXXRecordDecl* GetCXXRecordForType(const clang::QualType& type) { return nullptr; } const auto* record_type = derived_type->castAs(); - CHECK(record_type); + CHECK(record_type != nullptr); const clang::RecordDecl* decl = record_type->getOriginalDecl(); - CHECK(decl); + CHECK(decl != nullptr); return llvm::dyn_cast(decl); }