HomePhabricator

[Attributor][NFC] Use indexes instead of iterator

Authored by bbn on Aug 15 2020, 8:04 AM.

Description

[Attributor][NFC] Use indexes instead of iterator

When adding elements when iterating, the iterator will become
valid, which could cause errors. This fixes the issue by using
indexes instead of iterator.

Details

Committed
bbnAug 15 2020, 8:09 AM
Parents
rG345053390ac1: Add support for C++20 concepts and decltype to modernize-use-trailing-return…
Branches
Unknown
Tags
Unknown