This is an archive of the discontinued LLVM Phabricator instance.

Avoid by-value copies of referenced objects
ClosedPublic

Authored by urnathan on Dec 2 2021, 12:46 PM.

Details

Summary

These were detected by the new -Wauto-by-value-copy (D114989) warning, these by-value
constant copies need only be references.

Diff Detail

Event Timeline

urnathan created this revision.Dec 2 2021, 12:46 PM
urnathan requested review of this revision.Dec 2 2021, 12:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2021, 12:46 PM
aaron.ballman accepted this revision.Dec 16 2021, 5:12 AM

LGTM! I think it's reasonable to not have test coverage for this change as it is functionally equivalent code, despite not being quite NFC.

This revision is now accepted and ready to land.Dec 16 2021, 5:12 AM
This revision was automatically updated to reflect the committed changes.