Fixed generation of class_model_class diagram

This commit is contained in:
Bartek Kryza
2023-02-18 23:04:32 +01:00
parent c2b83e2396
commit bdf9a7e18f
2 changed files with 10 additions and 4 deletions

View File

@@ -897,8 +897,12 @@ void translation_unit_visitor::
desugared_atsp = deduced_type->getDeducedType();
}
const auto *deduced_record_type =
desugared_atsp->getAs<clang::RecordType>();
if (desugared_atsp.isNull())
return;
const auto *deduced_record_type = desugared_atsp->isRecordType()
? desugared_atsp->getAs<clang::RecordType>()
: nullptr;
if (deduced_record_type != nullptr) {
if (auto *deduced_auto_decl =