Skip to content

Commit 5c60f06

Browse files
[TextAPI] Use llvm::replace (NFC) (#140201)
1 parent ab1fea4 commit 5c60f06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/TextAPI/InterfaceFile.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ void InterfaceFile::inlineLibrary(std::shared_ptr<InterfaceFile> Library,
102102

103103
if (Overwrite && It != Documents.end() &&
104104
Reexport->getInstallName() == (*It)->getInstallName()) {
105-
std::replace(Documents.begin(), Documents.end(), *It,
106-
std::move(Reexport));
105+
llvm::replace(Documents, *It, std::move(Reexport));
107106
return;
108107
}
109108

0 commit comments

Comments
 (0)