This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Sema] Fix invalid cast when validating SVE types within CheckVariableDeclarationType.
ClosedPublic

Authored by paulwalker-arm on Apr 21 2023, 5:39 AM.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Apr 21 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2023, 5:39 AM
Herald added a subscriber: tschuett. · View Herald Transcript
paulwalker-arm requested review of this revision.Apr 21 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald Transcript

This is not my area so I don't know if replacing isFunctionOrMethod() rather than just extending the if clause is a bad idea, but all the tests still pass including the new one that would trigger an assert prior to this change.

dmgreen accepted this revision.Apr 24 2023, 12:54 AM

This LGTM, but I don't remember why it was written this way. (I am not an expert in this area either). It seems to still give correct error messages with/without __attribute__((target("sve"))).

This revision is now accepted and ready to land.Apr 24 2023, 12:54 AM