We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8bd43 commit f1b19bfCopy full SHA for f1b19bf
infra/indexer/frontend/ast_visitor.cc
@@ -863,9 +863,9 @@ const clang::CXXRecordDecl* GetCXXRecordForType(const clang::QualType& type) {
863
return nullptr;
864
}
865
const auto* record_type = derived_type->castAs<clang::RecordType>();
866
- CHECK(record_type);
867
- const clang::RecordDecl* decl = record_type->getOriginalDecl();
868
- CHECK(decl);
+ CHECK(record_type != nullptr);
+ const clang::RecordDecl* decl = record_type->getDecl();
+ CHECK(decl != nullptr);
869
return llvm::dyn_cast<clang::CXXRecordDecl>(decl);
870
871
0 commit comments