This is an archive of the discontinued LLVM Phabricator instance.

Fix -Wpessimizing-move warnings
AcceptedPublic

Authored by stephan.dollberg on Dec 22 2019, 2:28 AM.

Details

Reviewers
lhames
Summary

Fixes a bunch of -Wpessimizing-move warnings as warned by gcc9.
std::moves in returns which prevents copy elision.

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2019, 2:28 AM
lhames accepted this revision.Jan 24 2020, 2:55 PM

LGTM. Please go ahead and commit. If you do not have commit access just let me know and I can commit on your behalf.

This revision is now accepted and ready to land.Jan 24 2020, 2:55 PM

Yes please that would be great, I don't have access.

Rebased again, resolved conflicts