This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by Manna on May 25 2023, 6:48 PM.

Details

Summary

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

Diff Detail

Event Timeline

Manna created this revision.May 25 2023, 6:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2023, 6:48 PM
Manna requested review of this revision.May 25 2023, 6:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2023, 6:48 PM
erichkeane accepted this revision.May 30 2023, 6:14 AM
This revision is now accepted and ready to land.May 30 2023, 6:14 AM
Manna added a comment.May 30 2023, 7:48 AM

Thank you @erichkeane for reviews!