This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Use isSVESizelessBuiltinType instead of isSizelessBuiltinType to prevent crashing on RISC-V.
ClosedPublic

Authored by craig.topper on Feb 24 2023, 8:15 PM.

Details

Summary

These 2 spots are protecting calls to SVE specific functions. If RISC-V
sizeless types end up in there we trigger assertions.

Use the more specific isSVESizelessBuiltinType() to avoid letting
RISC-V vectors through.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 24 2023, 8:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 8:15 PM
craig.topper requested review of this revision.Feb 24 2023, 8:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 8:15 PM
c-rhodes accepted this revision.Feb 27 2023, 1:04 AM
This revision is now accepted and ready to land.Feb 27 2023, 1:04 AM
asb accepted this revision.Feb 27 2023, 1:46 AM
This revision was landed with ongoing or failed builds.Feb 27 2023, 9:19 AM
This revision was automatically updated to reflect the committed changes.