[llvm] 5c60f06 - [TextAPI] Use llvm::replace (NFC) (#140201)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May 16 07:31:25 PDT 2025
    
    
  
Author: Kazu Hirata
Date: 2025-05-16T07:31:20-07:00
New Revision: 5c60f066488e3ebdacc5f63e8421715a152ab401
URL: https://github.com/llvm/llvm-project/commit/5c60f066488e3ebdacc5f63e8421715a152ab401
DIFF: https://github.com/llvm/llvm-project/commit/5c60f066488e3ebdacc5f63e8421715a152ab401.diff
LOG: [TextAPI] Use llvm::replace (NFC) (#140201)
Added: 
    
Modified: 
    llvm/lib/TextAPI/InterfaceFile.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/TextAPI/InterfaceFile.cpp b/llvm/lib/TextAPI/InterfaceFile.cpp
index e2253723659e2..49e6fa673fd88 100644
--- a/llvm/lib/TextAPI/InterfaceFile.cpp
+++ b/llvm/lib/TextAPI/InterfaceFile.cpp
@@ -102,8 +102,7 @@ void InterfaceFile::inlineLibrary(std::shared_ptr<InterfaceFile> Library,
 
     if (Overwrite && It != Documents.end() &&
         Reexport->getInstallName() == (*It)->getInstallName()) {
-      std::replace(Documents.begin(), Documents.end(), *It,
-                   std::move(Reexport));
+      llvm::replace(Documents, *It, std::move(Reexport));
       return;
     }
 
        
    
    
More information about the llvm-commits
mailing list