This is an archive of the discontinued LLVM Phabricator instance.

[NFC][CLANG] Fix nullptr dereference issue in Type::getRVVEltType()
ClosedPublic

Authored by Manna on May 30 2023, 8:33 AM.

Details

Summary

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

Diff Detail

Event Timeline

Manna created this revision.May 30 2023, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 8:33 AM
Manna requested review of this revision.May 30 2023, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 8:33 AM
erichkeane accepted this revision.May 30 2023, 8:50 AM
This revision is now accepted and ready to land.May 30 2023, 8:50 AM
Manna added a comment.May 30 2023, 8:58 AM

Thank you @erichkeane for reviews!