This is an archive of the discontinued LLVM Phabricator instance.

[DeadArgElim] Use structure bindings in foreach loops. NFC
ClosedPublic

Authored by psamolysov on Aug 31 2022, 8:10 AM.

Details

Summary

Since LLVM supports C++17, new features from the standard such as structure binding can be used in the source code.

Diff Detail

Unit TestsFailed

Event Timeline

psamolysov created this revision.Aug 31 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 8:10 AM
psamolysov requested review of this revision.Aug 31 2022, 8:10 AM

This kind of patches don't need pre-commit review.

nlopes accepted this revision.Aug 31 2022, 8:39 AM
This revision is now accepted and ready to land.Aug 31 2022, 8:39 AM
MaskRay accepted this revision.Aug 31 2022, 9:33 AM

@nlopes Thank you for the information. I've opened the review to get whether this kind of c++17tion makes any sense at all.

This revision was landed with ongoing or failed builds.Sep 1 2022, 3:49 AM
This revision was automatically updated to reflect the committed changes.