From f43441e1939d8fbff3ad8a46b45f8cd6e6a84e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Sun, 9 Nov 2025 16:15:53 -0800 Subject: [PATCH] Minor modernizations Indexer-PiperOrigin-RevId: 830186291 --- 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); }