This is an archive of the discontinued LLVM Phabricator instance.

[Support] [Path] Use std::replace instead of an explicit comparison loop. NFC.
ClosedPublic

Authored by mstorsjo on Oct 13 2021, 8:31 AM.

Details

Summary

After 8fc7a907b93a8e9eef96e872f8f926db3ebfe9b6, this loop does
the same as a plain std::replace.

Also clarify the comment about what this function does.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 13 2021, 8:31 AM
mstorsjo requested review of this revision.Oct 13 2021, 8:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 8:31 AM
This revision is now accepted and ready to land.Oct 13 2021, 9:35 AM