This is an archive of the discontinued LLVM Phabricator instance.

[SemaOverload] Use iterator_range to iterate over VectorTypes (NFC).
ClosedPublic

Authored by fhahn on Jun 4 2020, 3:33 AM.

Details

Summary

We can simplify the code a bit by using iterator_range instead of
plain iterators. Matrix type support here (added in 6f6e91d19337)
already uses an iterator_range.

Diff Detail

Event Timeline

fhahn created this revision.Jun 4 2020, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2020, 3:33 AM
Herald added a subscriber: dexonsmith. · View Herald Transcript
rjmccall accepted this revision.Jun 4 2020, 11:46 AM

Thanks, LGTM. (But you can use QualType by value.)

This revision is now accepted and ready to land.Jun 4 2020, 11:46 AM
fhahn added a comment.Jun 4 2020, 12:59 PM

Thanks, LGTM. (But you can use QualType by value.)

Thanks, changed in the committed version.

This revision was automatically updated to reflect the committed changes.