After 8fc7a907b93a8e9eef96e872f8f926db3ebfe9b6, this loop does
the same as a plain std::replace.
Also clarify the comment about what this function does.
Paths
| Differential D111730
[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 Also clarify the comment about what this function does.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 13 2021, 9:35 AM Closed by commit rG2a4b1539e991: [Support] [Path] Use std::replace instead of an explicit comparison loop. NFC. (authored by mstorsjo). · Explain WhyOct 13 2021, 12:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 379507 llvm/include/llvm/Support/Path.h
llvm/lib/Support/Path.cpp
|