This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Explicitly support CTAD in ArrayRef
AbandonedPublic

Authored by Mogball on Aug 18 2022, 11:21 AM.

Details

Reviewers
None
Summary

ArrayRef and MutableArrayRef need to explicitly declare support for CTAD,
otherwise uses of it trigger -Wctad-maybe-unsupported which was recently
enabled in LLVM in D131727

Diff Detail

Event Timeline

Mogball created this revision.Aug 18 2022, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:21 AM
Mogball requested review of this revision.Aug 18 2022, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:21 AM
Mogball abandoned this revision.Aug 20 2022, 9:41 PM

Guess this might let us remove makeArrayRef/makeMutableArrayRef at some point?

Also, looks like this was sent for review, then abandoned and
committed without review? Generally if something's sent for review it
should not be submitted until the review is completed (we don't want
to create situations where people send things for review because they
need review, but then submit them due to lack of feedback in the
review)

Mogball added a comment.EditedAug 22 2022, 4:41 PM

This should not have been submitted. I just abandoned the patch because I'm not sure this was the right direction.

I doubled checked the repo, and indeed this patch was not accidentally committed

This should not have been submitted. I just abandoned the patch because I'm not sure this was the right direction.

Ah, OK - I think I'd be OK with this direction, FWIW, but haven't considered all the nuances.

I doubled checked the repo, and indeed this patch was not accidentally committed

Oh, indeed - sorry, I thought I was reading a commit that referenced phab, instead of just a phab review.