This is an archive of the discontinued LLVM Phabricator instance.

[NFC][CLANG] Fix nullptr dereference issue in ConvertQualTypeToKind()
ClosedPublic

Authored by Manna on Jun 1 2023, 1:42 PM.

Details

Summary

This patch uses castAs instead of getAs which will assert if the type doesn't match in ConvertQualTypeToKind(clang::​ASTContext const &, clang::​QualType).

Diff Detail

Event Timeline

Manna created this revision.Jun 1 2023, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 1:42 PM
Manna requested review of this revision.Jun 1 2023, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 1:42 PM
erichkeane accepted this revision.Jun 2 2023, 5:57 AM
This revision is now accepted and ready to land.Jun 2 2023, 5:57 AM
Manna added a comment.Jun 2 2023, 6:44 AM

Thank you @erichkeane for reviews!