This is an archive of the discontinued LLVM Phabricator instance.

[AST] Use an explicit copy in a range-based for
ClosedPublic

Authored by Mordante on Nov 9 2019, 9:14 AM.

Details

Summary

The AssociationIteratorTy type will be copied in a range-based for loop.
Make the copy explicit to avoid the -Wrange-loop-analysis warning.

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

Diff Detail

Event Timeline

Mordante created this revision.Nov 9 2019, 9:14 AM
This revision is now accepted and ready to land.Nov 11 2019, 5:15 PM
This revision was automatically updated to reflect the committed changes.