This is an archive of the discontinued LLVM Phabricator instance.

[llvm][ADT] Mark `makeMutableArrayRef` as deprecated
ClosedPublic

Authored by jloser on Jan 16 2023, 1:55 PM.

Details

Summary

Now that all of the uses of makeMutableArrayRef are replaced in-tree with use
of deduction guides (see
https://github.com/llvm/llvm-project/commit/a288d7f937708cf67d960962bfa22ffae37ddbf4),
mark makeMutableArrayRef as deprecated.

Also remove the old tests for makeMutableArrayRef in favor of the ones
introduced with the deduction guides in
https://github.com/llvm/llvm-project/commit/38791259c1165cedfa313e06dc20e443f1e20634.

Diff Detail

Event Timeline

jloser created this revision.Jan 16 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 1:55 PM
jloser requested review of this revision.Jan 16 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 1:55 PM
dblaikie added inline comments.Jan 17 2023, 7:39 AM
llvm/include/llvm/ADT/ArrayRef.h
609

Should the replacements be MutableArrayRef rather than ArrayRef?

jloser updated this revision to Diff 489878.Jan 17 2023, 10:38 AM

Update LLVM_DEPRECATED messages to use MutableArrayRef

jloser marked an inline comment as done.Jan 17 2023, 10:38 AM
jloser added inline comments.
llvm/include/llvm/ADT/ArrayRef.h
609

Oops, yeah, they should. Just updated them — thanks!

dblaikie accepted this revision.Jan 17 2023, 11:54 AM

Sounds good, thanks!

This revision is now accepted and ready to land.Jan 17 2023, 11:54 AM
This revision was landed with ongoing or failed builds.Jan 17 2023, 12:01 PM
This revision was automatically updated to reflect the committed changes.
jloser marked an inline comment as done.