From e5f07551f05c374bd9ddbcb4e9c31a73607bd81b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 5 Jan 2015 17:56:32 +0000 Subject: [PATCH] SymbolRewriter: use iplist::splice The swap implementation for iplist is currently unsupported. Simply splice the old list into place, which achieves the same purpose. This is needed in order to thread the -frewrite-map-file frontend option correctly. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225186 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SymbolRewriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/SymbolRewriter.cpp b/lib/Transforms/Utils/SymbolRewriter.cpp index 9f57ad1c64f..b35a662f17b 100644 --- a/lib/Transforms/Utils/SymbolRewriter.cpp +++ b/lib/Transforms/Utils/SymbolRewriter.cpp @@ -494,7 +494,7 @@ RewriteSymbols::RewriteSymbols() : ModulePass(ID) { RewriteSymbols::RewriteSymbols(SymbolRewriter::RewriteDescriptorList &DL) : ModulePass(ID) { - std::swap(Descriptors, DL); + Descriptors.splice(Descriptors.begin(), DL); } bool RewriteSymbols::runOnModule(Module &M) {