This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by Manna on Jun 4 2023, 10:18 AM.

Details

Summary

This patch uses castAs instead of getAs which will assert if the type doesn't match in checkSizelessVectorShift(clang::​Sema &, clang::​ActionResult<clang::​Expr *, true> &, clang::​ActionResult<clang::​Expr *, true> &, clang::​SourceLocation, bool).

Diff Detail

Event Timeline

Manna created this revision.Jun 4 2023, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 10:18 AM
Manna requested review of this revision.Jun 4 2023, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 10:18 AM
erichkeane accepted this revision.Jun 5 2023, 6:42 AM
This revision is now accepted and ready to land.Jun 5 2023, 6:42 AM
Manna added a comment.Jun 5 2023, 8:10 AM

Thank you @erichkeane for reviews!